acos

Returns the inverse cosine (in radians) of a.

Syntax

R = acos(a)

Inputs

a
Any valid scalar | vector | matrix
Type: double | integer
Dimension: scalar | vector | matrix

Outputs

R in radians
scalar | vector | matrix

Examples

Simple scalar input:
R = acos(-0.5)
R = 2.0944
Simple matrix input:
R = acos([-3,0.6])
R = [ 3.14159-1.76275i, 0.927295]
Complex matrix input:
R = acos([i+2,3i-1;i,0.3])
R = [ 0.507356-1.46935i, 1.8784-1.86416i; 1.5708-0.881374i, 1.2661]