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:

Bfloat

Function: bfloat (<expr>) Converts all numbers and functions of numbers in <expr> to bigfloat numbers. The number of significant digits in the resulting bigfloats is specified by the global variable fpprec.

N: [10, 1,2,3];
p(x,n):=x/n;
total(x):=sum(x[i],i,1,length(x));
logN(n,x):=log(x)/log(n);
I(A):=-sum(p(A[i],total(A))*logN(length(A),p(A[i],total(A))), i, 1, length(A));
bfloat(I(N));

When float2bf is false a warning message is printed when a floating point number is converted into a bigfloat number (since this may lead to loss of precision).

There are also some inexact matches for bfloat. Try ?? bfloat to see them.

(%o1)                                true
(%i2) 

Related Examples

bfloat-cos-fpprec-pi-product-sqrt

f(n):=product((1-cos(...

bfloat( f(103 )), fpp...

Calculate

bfloat-cos-float-integrate

bfloat(at(.16*(integr...

bfloat(integrate((3 -...

Calculate

bfloat

? bfloat ;

Calculate

bfloat-binomial-block-distrib-floor-load-sum

load(distrib);

trufas(brotes):=block...

total(n,k,d,esp,p):=b...

Calculate

bfloat-fpprec-plot2d-sqrt
plot2d(f(x),[x,-c,c]);

f(x):=sqrt(2^2-x^2+100);

fpprec:5;

bfloat(f(9));

Calculate

bfloat-bftorat-block-delete-if-integerp-mod-rat-ratdenom-ratepsilon-ratprint

delete(%pi, [0, 3.141...

lastdigits(fnum, last...

lastdigits(3.1459, 3);

Calculate

bfloat-determinant-invert-matrix-pi-plot2d-sin-transpose
plot2d( [sin(x),f(x)], [x,-5,5] );

f(x):=(4/pi)*( (sin(2...

f(x):=sin(2*x);

plot2d( [sin(x),f(x)]...

Calculate

bfloat-numer-sqrt-true

FPPREC:3;

numer:true;

x1:0;

Calculate

bfloat-float

bfloat((-1/2)^(1/3));

Calculate

bfloat-float-fpprec-sqrt

u:sqrt(3)*230;

float (u);

fpprec:24;

Calculate