Previous Up Next

10.2.7  Displaying exponents

The printpow command determines how the print command will print exponents. By default,

print(x^3)

will print

x^3

If you use the command

printpow(1)

then

print(x^3)

will print as

pow(x,3)

If you use the command

printpow(-1)

then

print(x^3)

will print as

x**3

Finally,

printpow(0)

will restore the default form.


Previous Up Next