<< mps_const_log2 mpscilab mps_copy >>

mpscilab >> mpscilab > mps_const_pi

mps_const_pi

Create and initialize a multi-precision matrix filled with the value of pi

Calling Sequence

rop = mps_const_pi( prec )
rop = mps_const_pi( m1, n1, prec )
mps_const_pi( rop )

Arguments

rop

multi-precision matrix

m1, n1, prec

integers

Description

Create and initialize a multi-precision matrix filled with the value of pi. The constant will be evaluated up to the specified precision.

rop = mps_const_pi( prec )

Create and initialize a scalar of precision prec initialized to pi.

rop = mps_const_pi( m1, n1, prec )

Create and initialize a matrix of size (m1,n1) with precision prec filled with the value of pi.

mps_const_pi( rop )

Set every element of rop to pi.

Restrictions

The precision must be two bits or higher.

Examples

mpsA = mps_const_pi(100)
mpsA = mps_const_pi(10,10,100)

//Set every elements of mpsB to pi.
mpsB = mps_init(10,10,100)
mps_const_pi(mpsB)

See Also

<< mps_const_log2 mpscilab mps_copy >>