Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Fpprintprec

-- Option variable: fpprintprec Default value: 0

fpprintprec is the number of digits to print when printing an ordinary float or bigfloat number.

load (fft) ;
fpprintprec : 4 ;
L : [1, 2, 3, 4, -1, -2, -3, -4] ;
L1 : fft (L);
L2 : abs (L1);
plot2d([discrete, makelist(i*%pi/8, i, 0, 8),                            L2]);

For ordinary floating point numbers, when fpprintprec has a value between 2 and 16 (inclusive), the number of digits printed is equal to fpprintprec. Otherwise, fpprintprec is 0, or greater than 16, and the number of digits printed is 16.

For bigfloat numbers, when fpprintprec has a value between 2 and fpprec (inclusive), the number of digits printed is equal to fpprintprec. Otherwise, fpprintprec is 0, or greater than fpprec, and the number of digits printed is equal to fpprec.

fpprintprec cannot be 1.

(%o1)                                true
(%i2) 

Related Examples

fpprintprec-numer-true

numer : true;

fpprintprec : 6;

f (x, y) := y-5*x^2;

Calculate

fpprintprec

54.8/1000;

fpprintprec:17;

Calculate

fpprintprec-load

load (fft) ;

fpprintprec : 4 ;

L : [1, 2, 3, 4, -1, ...

Calculate

fpprintprec-is-sqrt

is(sqrt(4)*sqrt(4)=sq...

is(sqrt(7)*sqrt(8)=sq...

is(sqrt(8)=2*sqrt(2));

Calculate

fpprintprec

fpprintprec:12;

a: 0.00000000001;

Calculate

fpprintprec

fpprintprec:20;

a: 0.00000000001;

Calculate

fpprintprec-load

load (fft) ;

fpprintprec : 4 ;

L : [1, 2, 3, 4, -1, ...

Calculate

fpprintprec

fpprintprec:5;

1/3.0;

Calculate

fpprintprec-is-sqrt

is(sqrt(4)*sqrt(4)=sq...

is(sqrt(7)*sqrt(8)=sq...

is(sqrt(8)=2*sqrt(2));

Calculate

fpprintprec-numer-pi-sin

fpprintprec:10;

U:6;

T:0.00001;

Calculate