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-diff-erf-pade-plot2d-taylor
plot2d([g(x)], [x, 0, 2]);

f(x) := -%e^(-x*x)+1 ...

df1(x) := diff(f(x), ...

df2(x) := diff(f(x), ...

Calculate

bfloat

n: 17;

bfloat((n+10)!/(2*n-1...

Calculate

bfloat-block-denom-false-float-mod-ratexpand-ratprint

ratprint:false;

lastdigits(fnum, last...

rat(0.1234);

Calculate

bfloat-float-fpprec-pi-sqrt

u:sqrt(3)*230;

float(u);

fpprec:24;

Calculate

bfloat-fpprec-fpprintprec

fpprec: 50;

fpprintprec: 30;

a: bfloat(0.123456789...

Calculate

bfloat-fpprec-pi-sin

fpprec:20;

bfloat(sin((75*%pi)/1...

Calculate

bfloat-float-fpprec-pi-sqrt

u:sqrt(3)*230;

float(u);

fpprec:24;

Calculate

bfloat-diff-erf-pade-plot2d-taylor
plot2d([g(x)- f(x)], [x, 0, 2]);

f(x) := -%e^(-x*x)+1 ...

df1(x) := diff(f(x), ...

df2(x) := diff(f(x), ...

Calculate

bfloat-block-denom-false-float-mod-ratprint-ratsimp

ratprint:false;

lastdigits(fnum, last...

rat(0.1234);

Calculate

bfloat-fpprec

fpprec: 5;

7.506 * 357 * 150 / 3...

bfloat(7.506 * 357 * ...

Calculate