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:

Obase Calculator

Obase

-- Option variable: obase Default value: 10

obase is the base for integers displayed by Maxima.

kill(base,n,d,r,q);
stringdisp:true;
obase:10;
base(n,d):=block([q:0, r:n, obase:d], q:0, r:n, while(r>=d) do(q:q+1,r:r-d, return(concat(q,r))));
makelist(base(k,10), k, 1, 10);
makelist(base(k,2), k, 1, 10);

obase may be assigned any integer between 2 and 36 (decimal), inclusive. When obase is greater than 10, the numerals comprise the decimal numerals 0 through 9 plus capital letters of the alphabet A, B, C, ..., as needed. A leading 0 digit is displayed if the leading digit is otherwise a letter. The numerals for base 36, the largest acceptable base, comprise 0 through 9, and A through Z.

See also ibase.

Examples:

          (%i1) obase : 2;
          (%o1)                          10
          (%i2) 2^8 - 1;
          (%o10)                      11111111
          (%i3) obase : 8;
          (%o3)                          10
          (%i4) 8^8 - 1;
          (%o4)                       77777777
          (%i5) obase : 16;
          (%o5)                          10
          (%i6) 16^8 - 1;
          (%o6)                       0FFFFFFFF
          (%i7) obase : 36;
          (%o7)                          10
          (%i8) 36^8 - 1;
          (%o8)                       0ZZZZZZZZ

(%o1)                                true
(%i2) 

Obase Example

Related Examples

obase

obase:16;

37;

Calculate

obase

n:9;

obase:2;

n;

Calculate

obase-plot2d
plot2d(K_s(x), [x,-2,200], [y, -2, 1000]);

obase:10;

K(x):= 0.0003*x^3-0.5...

K_s(x):=K(x)/x;

Calculate

obase

obase:16;

195+23;

Calculate

obase

obase:10;

K(x):= 0.0003*x^3-0.5...

K_s(x):=K(x)/x;

Calculate

obase

obase:16;

195+23;

Calculate

obase

obase:10;

K(x):= 0.0003*x^3-0.5...

K_s(x):=K(x)/x;

Calculate

obase

obase:16.;

10;

Calculate