Skip to content

Commit ba80963

Browse files
authored
Merge pull request #505 from per1234/simple-pow-example
Add basic example for pow()
2 parents d4560ce + 19d48b3 commit ba80963

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Language/Functions/Math/pow.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,13 @@ The result of the exponentiation. (`double`)
4747
[float]
4848
=== Example Code
4949
// Describe what the example code is all about and add relevant code ►►►►► THIS SECTION IS MANDATORY ◄◄◄◄◄
50-
See the (http://arduino.cc/playground/Main/Fscale[fscale]) function in the code library.
50+
Calculate the value of x raised to the power of y:
51+
[source,arduino]
52+
----
53+
z = pow(x, y);
54+
----
55+
See the (http://arduino.cc/playground/Main/Fscale[fscale]) sketch for a more complex example of the use of `map()`.
56+
[%hardbreaks]
5157

5258
--
5359
// HOW TO USE SECTION ENDS

0 commit comments

Comments
 (0)