<< condnb_condnum Condnb condnb_erfcond >>

Condnb >> Condnb > condnb_coscond

condnb_coscond

Computes the condition number of the cos function.

Calling Sequence

[c,y] = condnb_coscond ( 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 cos function. The cos function has a large condition number if

Examples

[c,y] = condnb_coscond ( 1 ) // ~1
[c,y] = condnb_coscond ( %pi/2 ) // ~10^16

condnb_plotcond ( condnb_coscond , linspace(-4,4,1000) );

Authors

<< condnb_condnum Condnb condnb_erfcond >>