Science & Data

Trigonometry

Trigonometric functions accept angles. Bare numeric values are degrees by default.

Functions

  • Basicsin, cos, tan
  • Reciprocalsec, csc, cot
  • Inverseasin, acos, atan, asec, acsc, acot
  • Hyperbolicsinh, cosh, tanh, sech, csch, coth
  • Inverse hyperbolicasinh, acosh, atanh, asech, acsch, acoth
sin 30
cos 60
tan 45
sec 60
asin 0.5
atan 1
sinh 1
asinh 1

Angle units

With no unit, Hissab assumes degrees. You can pass an explicit angle unit: degree, grad, radian, arcminute, arcsecond, or turn.

sin 1.5708 radian
cos 200 grad
sin 0.25 turn

Inverse functions return degrees.

atan 1

Constants

pi and e are recognized numeric constants.

2 * pi
e^2

Common mistakes

  • sin 90 means sine of 90 degrees. If you mean radians, include the unit: sin 90 radian.
  • sin(pi / 2 radian) is invalid — use a plain numeric value with the unit, such as sin 1.5708 radian.
  • acosh 0.5 and atanh 2 are out of domain.
sin 90 radian
sin 1.5708 radian