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:

Keepfloat Calculator

Keepfloat

-- Option variable: keepfloat Default value: false

When keepfloat is true, prevents floating point numbers from being rationalized when expressions which contain them are converted to canonical rational expression (CRE) form.

Note that the function solve and those functions calling it (eigenvalues, for example) currently ignore this flag, converting floating point numbers anyway.

Examples:

          (%i1) rat(x/2.0);

rat replaced 0.5 by 1/2 = 0.5 x

          (%o1)/R/                               -
                                                 2
          (%i2) rat(x/2.0), keepfloat;

          (%o2)/R/                             0.5 x

solve ignores keepfloat:

          (%i3) solve(1.0-x,x), keepfloat;

          rat replaced 1.0 by 1/1 = 1.0
          (%o3)                               [x = 1]

(%o1)                                true
(%i2) 

Keepfloat Example

Related Examples

keepfloat-linsolve

?keepfloat;

eq1:-cx-81+bxi=0;

eq2:cz+28+45-bzi=0;

Calculate

keepfloat

? keepfloat;

Calculate

keepfloat

? keepfloat;

Calculate

keepfloat-solve-true

keepfloat:true;

float(solve (x=0.1734...

Calculate

keepfloat-solve-true

keepfloat:true;

float(solve (x=0.1734...

Calculate

keepfloat-solve-true

keepfloat:true;

float(solve (x=0.1734...

Calculate

keepfloat-linsolve

?keepfloat;

eq1:-cx-81+bxi=0;

eq2:cz+28+45-bzi=0;

Calculate

keepfloat-solve

solve(1.0-x,x), keepf...

Calculate

keepfloat-solve-true

keepfloat:true;

float(solve (x=0.1734...

Calculate

keepfloat-solve

solve(1.0-x,x), keepf...

Calculate