Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 4 years ago

gg gravatar image

Unexpected result for trigonometric function

I'm trying to solve the following trig eqn using sage.

sin(x)cos(x)=0

Hand calculation give me the result of: x=π4+nπ

However, the solve() method gives me a different result, why is that?:

sage: 
sage: solve(sin(x)-cos(x) == 0, x, to_poly_solve=True)
[x == 1/4*pi + pi*z25]
sage:

Also, what's z in the answer? I haven't defined any such variable.

Unexpected result for trigonometric function

I'm trying to solve the following trig eqn using sage.

sin(x)cos(x)=0

Hand calculation give me the result of: x=π4+nπ

However, the solve() method function gives me a different result, why is that?:

sage: 
sage: solve(sin(x)-cos(x) == 0, x, to_poly_solve=True)
[x == 1/4*pi + pi*z25]
sage:

Also, what's z in the answer? I haven't defined any such variable.