Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

trig_reduce function

Rewrite powers and products of trigonometric functions as functions of multiple angles.

How to write it

trig_reduce(expr)

expr
Any expression: a number, a formula, a list or a matrix. Takes an expression.

Examples

  • sin⁡2(x)=12−cos⁡(2x)2\displaystyle \sin^{2}(x) = \frac{1}{2}-\frac{\cos(2 x)}{2}
    trig_reduce(sin(x)^2)

    In the solver, trig_reduce(sin(x)^2) gives 1/2 - cos(2x)/2.

    Open in the solver

Functions its examples use

  • sin

    Sine of an angle in radians.

  • trig_to_exp

    Rewrite trigonometric functions as complex exponentials.

  • trig_expand

    Expand trigonometric functions of sums and multiples of angles.

  • exp_to_trig

    Rewrite complex exponentials as trigonometric functions.

  • arccos

    Inverse cosine: the angle in radians whose cosine is a number.

  • tanh

    Hyperbolic tangent.

  • arccosh

    Inverse hyperbolic cosine.