"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에 대해 자세히 알아보기

질문:

2018년 7월 17일

편집:

2018년 7월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by