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



"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