Navigation

Operators and Keywords

Function List:

C++ API

asec.m File Reference


Functions

 !assert (all(abs(asec(x)-v)< sqrt(eps)))
!error asec ()
!error asec (1, 2)

Variables

function w
endfunction!test !rt2 = sqrt (2)
 !rt3 = sqrt (3)
 !v = [0, pi/6, pi/4, pi/3, 2*pi/3, 3*pi/4, 5*pi/6, pi]
 !x = [1, 2*rt3/3, rt2, 2, -2, -rt2, -2*rt3/3, -1]

Function Documentation

!assert ( all(abs(asec(x)-v)< sqrt(eps))   ) 

!error asec ( ,
 
)

!error asec (  ) 


Variable Documentation

endfunction !test !rt2 = sqrt (2)

!rt3 = sqrt (3)

!v = [0, pi/6, pi/4, pi/3, 2*pi/3, 3*pi/4, 5*pi/6, pi]

!x = [1, 2*rt3/3, rt2, 2, -2, -rt2, -2*rt3/3, -1]

endif w

Initial value:

 asec (z)

  if (nargin != 1)
    print_usage ()