<< mps_cot Trigonometric functions mps_csc >>

mpscilab >> mpscilab > Trigonometric functions > mps_coth

mps_coth

Element-wise hyperbolic cotangent function

Calling Sequence

mps_coth( rop, op )
rop = mps_coth( op )

Arguments

rop

multi-precision matrix

op

Scilab or multi-precision matrix

Description

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

Usage notes

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

Examples

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

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

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

See Also

<< mps_cot Trigonometric functions mps_csc >>