Difference between revisions of "Pow"

From Mesham
Jump to navigationJump to search
m
Line 3: Line 3:
 
This pow(n,x) function will return ''n'' to the power of ''x''.
 
This pow(n,x) function will return ''n'' to the power of ''x''.
  
* '''Pass:''' Two integers
+
* '''Pass:''' Two [[Int|Ints]]
* '''Returns:''' A double representing the squared result
+
* '''Returns:''' A [[Double]] representing the squared result
  
 
== Example ==
 
== Example ==
Line 10: Line 10:
 
  #include <maths>
 
  #include <maths>
 
  var a:=pow(2,8);
 
  var a:=pow(2,8);
 +
 +
''Since: Version 0.41b''
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:Maths Functions]]
 
[[Category:Maths Functions]]

Revision as of 18:37, 13 January 2013

Overview

This pow(n,x) function will return n to the power of x.

  • Pass: Two Ints
  • Returns: A Double representing the squared result

Example

#include <maths>
var a:=pow(2,8);

Since: Version 0.41b