<< mps_csc Trigonometric functions mps_sec >>

mpscilab >> mpscilab > Trigonometric functions > mps_csch

mps_csch

Element-wise hyperbolic cosecant function

Calling Sequence

mps_csch( rop, op )
rop = mps_csch( op )

Arguments

rop

multi-precision matrix

op

Scilab or multi-precision matrix

Description

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

Usage notes

Like most mps functions the mps_csch( 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 csch() function.

Examples

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

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

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

See Also

<< mps_csc Trigonometric functions mps_sec >>