acos

Returns the inverse cosine (in radians) for each element of the argument.

Syntax

R = acos(sqrt(3)/2)

Inputs

a
Dimension: scalar | vector | matrix

Outputs

R
The angle result (in radians).

Examples

Scalar input:
R = acos(sqrt(3)/2)
R = 0.523598776
Matrix input:
R = acos([0, sqrt(3)/2; 0.5, sqrt(2)/2])
R = [Matrix] 2 x 2
  1.57080  0.52360
  1.04720  0.78540