Displaying exponents

### 25.2.7 Displaying exponents

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

- printpow takes n, which is 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).
  - If n=0, print(a^b) will subsequently print pow(a,b).
  - If n=1, print(a^b) will subsequently print a^b.

#### Examples

print(x^3):;

x`^`3

printpow(-1):; print(x^3):;

x**3

printpow(0):; print(x^3):;

pow(x,3)

printpow(1):; print(x^3):;

x`^`3