Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

weird behavior with trigonometric equation

Has anybody an explanation for this output?

print bool( tan(pi/6) == sin(pi/6)/cos(pi/6) )
print bool( tan(pi/5) == sin(pi/5)/cos(pi/5) )
print bool( tan(pi/5).n() == sin(pi/5).n()/cos(pi/5).n() )

    True
    False
    True