Previous Up Next

5.9.2  Usual infixed functions on reals: +,-,*,/,^

+,-,*,/,^ are the usual operators to do additions, subtractions, multiplications, divisions and for raising to a power.
Input:

3+2

Output:

5

Input:

3-2

Output:

1

Input:

3*2

Output:

6

Input:

3/2

Output:

3/2

Input:

3.2/2.1

Output:

1.52380952381

Input:

3^2

Output:

9

Input:

3.2^2.1

Output:

11.5031015682

Remark
You may use the square key or the cube key if your keyboard has one, for example: 32 returns 9.

Remark on non integral powers


Previous Up Next