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 " <firstname.lastname@example.org> wrote in message
> 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);
To contact Technical Support use the Contact Us link on