I have an equation that needs to be solved in scilab: with X varies from -1 to 1 for 1000 point and same with y. Can you give the correct format. I am getting one error all the time: Rows and columns do not match! This is the equation:

z=(E0*(-8/beta)*((X)/sqrt(((X)^2)+(y)^2))*(1/(beta*(sqrt(((X)^2)+(y)^2))))*((((beta*a*(sqrt(((X)^2)+(y)^2)))^2)/(2^2))-(((beta*a*(sqrt(((X)^2)+(y)^2)))^4)/((2^2)*(4^2)))+(((beta*a*(sqrt(((X)^2)+(y)^2)))^6)/((2^2)*(4^2)*(6^2))))-E0*(-8/beta)*cos(3*acos(((X)/sqrt(((X)^2)+(y)^2))))*(1/(beta*(sqrt(((X)^2)+(y)^2))))*((1/factorial(3))*(1/(2^3))*(((beta*a*(sqrt(((X)^2)+(y)^2)))^4)/(4))-(1/(factorial(1)*factorial(4)*(2^5)))*(((beta*a*(sqrt(((X)^2)+(y)^2)))^6)/(6))+(1/(factorial(2)*factorial(5)*(2^7)))*(((beta*a*(sqrt(((X)^2)+(y)^2)))^8)/(8))-(1/(factorial(3)*factorial(6)*(2^9)))*(((beta*a*(sqrt(((X)^2)+(y)^2)))^10)/(10))))/(E0*(-8/beta)*cos(phi_1)*(1/(beta*sin(the_1))))

where

The_1 = 1.570796327

Phi_1 = 0, 6.283185307

beta = 245.0540291

a = 0.1282

E0 = 1

Scilab

Login to add comment