<< mps_acosh Trigonometric functions mps_asinh >>

mpscilab >> mpscilab > Trigonometric functions > mps_asin

mps_asin

Element-wise arcsine function

Calling Sequence

mps_asin( rop, op )
rop = mps_asin( op )

Overloaded usage:

rop = asin( op )

Arguments

rop

multi-precision matrix

op

Scilab or multi-precision matrix

Description

Computes the element-wise arcsine of op and returns the result in rop.

mps_asin( rop, op )

Sets every element of rop to the arcsine of the corresponding element of op. rop must be a pre-initialized matrix of the same dimension as op.

rop = mps_asin( op )

Creates a multi-precision matrix the same size and precision as op containing the result.

rop = asin( op )

Overloaded Scilab primitive asin(). Creates a multi-precision matrix the same size and precision as op containing the result.

Usage notes

Like most mps functions the mps_asin( 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.

Examples

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

// Standard usage with a pre-allocated matrix to receive the result.
A = [1 -2; 3 -4]
mpsA = mps_init2(A,100)
rop = mps_init(2,2,100)
mps_asin(rop,mpsA)

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

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

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

See Also

<< mps_acosh Trigonometric functions mps_asinh >>