Mark44 said:
Write some MATLAB code for these calculations and we'll help you with it, but we're not going to write the code for you.
i tried to find the roots of the equation then i have to find the derivatives with respect to x and y to be able to draw them
solve ('z^4+z^2*UINF^2*(x^2-y^2+a^2)-(UINF^4*x^2*y^2)=0','z')
ans =
1/2*(2*(x^4+2*x^2*y^2+2*x^2*a^2+y^4-2*y^2*a^2+a^4)^(1/2)-2*x^2+2*y^2-2*a^2)^(1/2)*UINF
-1/2*(2*(x^4+2*x^2*y^2+2*x^2*a^2+y^4-2*y^2*a^2+a^4)^(1/2)-2*x^2+2*y^2-2*a^2)^(1/2)*UINF
1/2*(-2*(x^4+2*x^2*y^2+2*x^2*a^2+y^4-2*y^2*a^2+a^4)^(1/2)-2*x^2+2*y^2-2*a^2)^(1/2)*UINF
-1/2*(-2*(x^4+2*x^2*y^2+2*x^2*a^2+y^4-2*y^2*a^2+a^4)^(1/2)-2*x^2+2*y^2-2*a^2)^(1/2)*UINF
one of the deravites is the folowwing (s)
x=-5:1:5
y=-5:1:5
s=1/4/(-2*(x.^4+2*x.^2*y.^2+2*x.^2*a.^2+y.^4-2*y.^2*a.^2+a.^4).^(1/2)-2*x.^2+2*y.^2-2*a.^2).^(1/2)*UINF*(-1/(x.^4+2*x.^2*y.^2+2*x.^2*a.^2+y.^4-2*y.^2*a.^2+a.^4).^(1/2)*(4*x.^2*y+4*y.^3-4*y*a.^2)+4*y)
a=1
UINF=1
plot(x,y,s)
x =
-5 -4 -3 -2 -1 0 1 2 3 4 5y =
-5 -4 -3 -2 -1 0 1 2 3 4 5
? Error using ==> mtimes
Inner matrix dimensions must agree.
i can't draw it why??