Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Re: There are a way of instruct the matlab to use sin(pi) = 0 in the symbolic computations?
Posted:
Jan 28, 2013 11:04 AM


"Fernando " <fernandovm@gmail.com> wrote in message news:ke63gc$c5r$1@newscl01ah.mathworks.com... > Hi, > > I have the equations system eqs = [(sin(2*q1)*i)/2; (sin(2*q1)*i)/2] > and when I do solve(eqs == 0) I get zero as unique solution, I know that, > due to limited precision, is correct the matlab does not to make sin(pi) = > 0. But, would be very usefull to me if I could make some symbolic > computations using sin(pi) = 0, and equally cos(pi/2) = 0. There are a way > of instruct the matlab to use both sin(pi) and cos(pi/2) equal to zero in > the symbolic computations?
Make it symbolic.
spi = sym(pi); sin(spi) cos(spi/2)
 Steve Lord slord@mathworks.com To contact Technical Support use the Contact Us link on http://www.mathworks.com



