<< mps_const_euler mpscilab mps_const_pi >>

mpscilab >> mpscilab > mps_const_log2

mps_const_log2

Create and initialize a multi-precision matrix filled with the natural logarithm of 2

Calling Sequence

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

Arguments

rop

multi-precision matrix

m1, n1, prec

integers

Description

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

rop = mps_const_log2( prec )

Create and initialize a scalar of precision prec initialized to the natural logarithm of 2.

rop = mps_const_log2( m1, n1, prec )

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

mps_const_log2( rop )

Set every element of rop to the logarithm of 2.

Restrictions

The precision must be two bits or higher.

Examples

mpsA = mps_const_log2(100)
mpsA = mps_const_log2(10,10,100)

//Set every elements of mpsB to the natural logarithm of 2.
mpsB = mps_init(10,10,100)
mps_const_log2(mpsB)

See Also

<< mps_const_euler mpscilab mps_const_pi >>