document.write( "Question 1205097: So I tried calculating the Cotangent of \"pi+%2F+2\" (90 degrees). The answer is 0, but my scientific calculator (Casio Fx300ES Plus) didn't say that. \r
\n" ); document.write( "\n" ); document.write( "I inputted:
\n" ); document.write( " ‍‍ ‍‍ ‍\r
\n" ); document.write( "\n" ); document.write( "But I got a Math ERROR. The answer is 0, not undefined? Why's that?
\n" ); document.write( "

Algebra.Com's Answer #841728 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "I'm not 100% certain if this is the case with Casio calculators, but check out this page here
\n" ); document.write( "https://stackoverflow.com/questions/345085/how-do-trigonometric-functions-work\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The CORDIC algorithm can be used to compute cos(pi/2) and sin(pi/2)
\n" ); document.write( "Since pi/2 is a common angle, likely your calculator will retrieve the following from a lookup table.
\n" ); document.write( "cos(pi/2) = 0
\n" ); document.write( "sin(pi/2) = 1\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Then under the hood your calculator would then use the identity that
\n" ); document.write( "cot = cos/sin
\n" ); document.write( "So you'll have 0 up top and 1 down below.
\n" ); document.write( "The ultimate result is 0. This is the correct value of cot(pi/2)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Why does your calculator throw an error when computing 1/tan?
\n" ); document.write( "Because tan = sin/cos, and cos(pi/2) = 0.
\n" ); document.write( "So tan(pi/2) = 1/0 = undefined
\n" ); document.write( "tan(pi/2) being undefined leads to the 1/tan also undefined (even though it should be 0).\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Technically what's going on is that as x gets closer to pi/2 from the left, tan(x) approaches positive infinity.
\n" ); document.write( "Stuff of the form 1/tan will approach 0 because you have something like 1/(some really large number).
\n" ); document.write( "If you haven't covered limits yet then don't worry.
\n" ); document.write( "
\n" ); document.write( "
\n" );