Name
condnb_acoscond — Computes the condition number of the acos function.
Calling Sequence
[c,y] = condnb_acoscond ( x )
Parameters
- x :
a n-by-m matrix of doubles
- c :
a n-by-m matrix of doubles, the condition number
- y :
a n-by-m, matrix of doubles, the function values
Description
Computes the condition number of the acos function.
The acos function has a large condition number if
- x is close to 1,
- x is close to -1,
Examples
[c,y] = condnb_acoscond ( 0.5 ) // c~1
[c,y] = condnb_acoscond ( 1-%eps/2 ) // c~10^7
[c,y] = condnb_acoscond ( -1+%eps/2 ) // c~10^7
condnb_acoscond ( -1 ) // %inf
condnb_acoscond ( 1 ) // %inf
condnb_acoscond ( 0 ) // 0
condnb_plotcond ( "acos" , linspace(-1,1,1000) );
Authors
Michael Baudin, DIGITEO, 2010 |