Name | pow() |
||||
---|---|---|---|---|---|
Examples |
a = pow( 1, 3)# Sets 'a' to 1*1*1 = 1 b = pow( 3, 5)# Sets 'b' to 3*3*3*3*3 = 243 c = pow( 3,-5)# Sets 'c' to 1 / 3*3*3*3*3 = 1 / 243 = .0041 d = pow(-3, 5)# Sets 'd' to -3*-3*-3*-3*-3 = -243 | ||||
Description | Facilitates exponential expressions. The pow() function is an efficient way of multiplying numbers by themselves (or their reciprocals) in large quantities. For example, pow(3, 5) is equivalent to the expression 3*3*3*3*3 and pow(3, -5) is equivalent to 1 / 3*3*3*3*3. | ||||
Syntax | pow(n, e) | ||||
Parameters |
| ||||
Related |
sqrt() |
Updated on Tue Feb 27 14:07:12 2024.
If you see any errors or have comments, please let us know.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License