Function ArcCos(x)

ArcCos

ArcCos(
      x             ! (input) numerical expression
      )

Arguments

x

A scalar numerical expression in the range \([-1,1]\).

Return Value

The ArcCos function returns the arccosine of x in the range 0 to \(\pi\) radians.

Note

  • A run-time error results if x is outside the range \([-1,1]\).

  • The function ArcCos can be used in constraints of nonlinear mathematical programs.

See also

The functions ArcSin, ArcTan, Cos. Arithmetic functions are discussed in full detail in Arithmetic Functions of the Language Reference.