Hi, for the last hour I am trying to start the numerical solver..
The copy-past from "help"
numeric::solve([sin(x) = y^2 - 1, cos(x) = y], [x, y]);
Error: Unexpected MATLAB operator
I can also use the other syntaxis option, which works fine in my script:
syms ha r2 positive; [h,rcone] = solve( hh(ha,r2) == 0, VV(ha,r2) == V0);
If use this, how do I define the range of ha and r2 in which I want the solutions?
No products are associated with this question.
thanks! but.. how to introduce the range in which I look for solutions? say, x=1..3 ? what's the syntax?
sol=solve('sin(x) = y^2 - 1', 'cos(x) = y')
sol=solve('sin(x) -y^2 + 1', 'cos(x) - y')
it depend on your equation .. write function used in your equation for search in hepl of matlab
numeric::solve is a MuPAD call that cannot be directly used from MATLAB. Use
feval(symengine, 'numeric::solve', [sym('sin(x) = y^2 - 1'), sym('cos(x) = y')], [sym('x'), sym('y')])
If you have R2011b or later (I think it is), you can use
syms x y feval(symengine, 'numeric::solve', [sin(x) = y^2 - 1, cos(x) = y], [x, y])