Displaying exponents: printpow

### 12.2.7 Displaying exponents: printpow

The printpow command determines how the print command will print exponents in the special pane above the output line.

- printpow takes on argument:
  n, either -1,0 or 1 (by default 1).
- printpow(n) sets the style for printing exponents with the print command.
  - If n=−1, print(a^b) will subsequently print a**b). ab.
  - If n=0, print(a^b) will subsequently print pow(a,b).
  - If n=1, print(a^b) will subsequently print a^b.

Example.
Input:

print(x^3)

Above the output line:

x^3

Input:

printpow(-1)
print(x^3)

Above the output line:

a**b

Input:

printpow(0)
print(x^3)

Above the output line:

pow(a,b)

Input:

printpow(1)
print(x^3)

Above the output line:

print(x^3)