<< mps_coth Trigonometric functions mps_csch >>

mpscilab >> mpscilab > Trigonometric functions > mps_csc

mps_csc

Element-wise cosecant function

Calling Sequence

mps_csc( rop, op )
rop = mps_csc( op )

Arguments

rop

multi-precision matrix

op

Scilab or multi-precision matrix

Description

Calculates the element-wise cosecant of op and returns the result in rop.

Usage notes

Like most mps functions the mps_csc( rop, op ) form is faster and can reuse the space of an existing matrix but requires an already initialized operand. Also, the same form can be used to perform an in-place operation when rop and op are the same.

Limitations

It is not currently possible to overload the Scilab csc() function.

Examples

// Standard usage.
A = [1 -2; 3 -4]
mpsA = mps_init2(A,100)
rop = mps_csc(mpsA)

// Same but using a Scilab matrix as input.
A = [1 -2; 3 -4]
rop = mps_init(2,2,100)
mps_csc(rop,A)

// In-place computation.
A = [1 -2; 3 -4]
mpsA = mps_init2(A,100)
mps_csc(mpsA,mpsA)

See Also

<< mps_coth Trigonometric functions mps_csch >>