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:

Stringdisp Calculator

Stringdisp

-- Option variable: stringdisp Default value: false

When stringdisp is true, strings are displayed enclosed in double quote marks. Otherwise, quote marks are not displayed.

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

stringdisp is always true when displaying a function definition.

Examples:

          (%i1) stringdisp: false$
          (%i2) "This is an example string.";
          (%o2)              This is an example string.
          (%i3) foo () :=
                print ("This is a string in a function definition.");
          (%o3) foo() :=
                        print("This is a string in a function definition.")
          (%i4) stringdisp: true$
          (%i5) "This is an example string.";
          (%o5)             "This is an example string."

(%o1)                                true
(%i2) 

Stringdisp Example

Related Examples

stringdisp

? stringdisp;

Calculate

stringdisp

? stringdisp;

Calculate