- #1
quin
- 50
- 0
dear friends
i want to do set of operation in MATLAB but i have a problem:
first of all, i want to take 3variable integration from f which is function of x,y,z,m,a
but i want to integrate only over x,y,z
after that for a special "a" forexample a=0.01 i want to solve the equation.i mean one side of equation is the answer of that 3variable integration and the other side is just a number
in MATLAB my program is:
a=0.01
syms m a x y z
f = inline(vectorize((2/m)-(2*a*(4+a*m))/(-(4+a*m)^2+(cos(0.25*(x-y)))^2+(cos(0.25*(x+y)))^2+(cos(0.5*x)+cos(0.5*y))*cos(0.5*z))),'x','y','z')
S = solve(330.734- triplequad(f,0,2*pi,0,2*pi,0,2*pi), m)
so for a special "a" i must find special "m"
but when i write it in matlab, it give error for "m"
but because i know the answer of "m" from somewhere else , when i put m and a in integration and solve equation it becomes true.
so what should i do?
i want to do set of operation in MATLAB but i have a problem:
first of all, i want to take 3variable integration from f which is function of x,y,z,m,a
but i want to integrate only over x,y,z
after that for a special "a" forexample a=0.01 i want to solve the equation.i mean one side of equation is the answer of that 3variable integration and the other side is just a number
in MATLAB my program is:
a=0.01
syms m a x y z
f = inline(vectorize((2/m)-(2*a*(4+a*m))/(-(4+a*m)^2+(cos(0.25*(x-y)))^2+(cos(0.25*(x+y)))^2+(cos(0.5*x)+cos(0.5*y))*cos(0.5*z))),'x','y','z')
S = solve(330.734- triplequad(f,0,2*pi,0,2*pi,0,2*pi), m)
so for a special "a" i must find special "m"
but when i write it in matlab, it give error for "m"
but because i know the answer of "m" from somewhere else , when i put m and a in integration and solve equation it becomes true.
so what should i do?