"Error using symengine" "Error in sym/subs>mupadsubs" "Error in sym/subs"

"Error using symengine Division by zero."
"Error in sym/subs>mupadsubs (line 160) G = mupadmex('symobj::fullsubs',F.s,X2,Y2);"
"Error in sym/subs (line 145) G = mupadsubs(F,X,Y);"
I'm coding below at the moment and having the error above.
syms x y
f=(-(x - 1)/(x*y))^(1/2)
g=gradient(f,[x,y])
[X,Y]=meshgrid(0:0.01:1,0:1E+7:1E+9);
G1=subs(g(1), [x y], {X,Y});
Anyone knows how to fix this? It'd be great help. I'm losing hours here.

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Function Creation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by