trigonometric expansion

The calculator makes it possible to obtain the trigonometric expansion of an expression.
  • expand_trigo(`cos(a+b)`) returns `cos(a)*cos(b)+sin(a)*sin(b)`
  • expand_trigo(`cos(a-b)`) returns `cos(a)*cos(b)-sin(a)*sin(b)`
  • expand_trigo(`sin(a-b)`) returns `cos(a)*sin(b)-sin(a)*cos(b)`
  • expand_trigo(`sin(a+b)`) returns `cos(a)*sin(b)+sin(a)*cos(b)`
See also