All six trig functions in degrees, radians or gradians, with exact surd values, a unit circle, and honest undefined answers where tangent blows up.
Ask a browser for the tangent of 90 degrees and it answers 16331239353195370. Not an error, not infinity, just a sixteen-digit number that looks like a result. It happens because 90° converted to radians is not exactly a quarter turn in binary floating point, so the cosine lands a hair away from zero and the division survives. The Trigonometric Function Calculator decides that case from the angle instead of the float, and says undefined.
Six functions rather than three, since cosecant, secant and cotangent are where the undefined cases actually bite, and any of degrees, radians or gradians going in. Angles that land on the 30/45/60 lattice get their exact surd printed beside the decimal, so 45° reads √2/2 and not only 0.7071067812.
The second mode runs the other way, turning a ratio back into an angle. That direction has a trap of its own, which the page states rather than hides: an inverse function returns one angle out of infinitely many.
Load Sample opens on 45 degrees. All six functions are defined: sine and cosine both read 0.7071067812 with √2/2 beside them, tangent and cotangent are exactly 1, and cosecant and secant are 1.414213562. The unit circle draws the angle with its sine and cosine dropped as dashed projections. Press it again for 90 degrees and the table changes character: sine is 1, cosine is 0, and tangent and secant are marked undefined with a note explaining that a calculator working from the floating-point angle prints an enormous number there instead. Keep cycling and you reach pi/3 in radians, 200 gradians (a straight angle, where it is cosecant and cotangent that drop out), and −135°, which normalises into quadrant III.
pi/3 is recognised as 60° and gets exact values; typing 1.0472 does not, because it is near π/3 rather than equal to it. Claiming exactness for an approximation would be the same dishonesty as printing that tangent.| sin | 0.7071067812 | √2/2 |
| cos | 0.7071067812 | √2/2 |
| tan | 1 | 1 |
| csc | 1.414213562 | |
| sec | 1.414213562 | |
| cot | 1 |
Values are shown to ten significant figures, which is past the point where double precision stays reliable for very large angles: normalising a million degrees loses some of the low-order digits before the sine is ever taken. Exact surd forms are printed only for angles that genuinely land on the 30/45/60 lattice, never as a rounded guess.