Difference between revisions of "Pow"

From Mesham
Jump to navigationJump to search
(Created page with '== Overview == This pow[n,x] function will return ''n'' to the power of ''x''. * '''Pass:''' Two integers * '''Returns:''' A double representing the result == Example == var…')
 
m
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
  
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 integers
* '''Returns:''' A double representing the result
+
* '''Returns:''' A double representing the squared result
  
 
== Example ==
 
== Example ==
  
  var a:=pow[2,8];
+
  var a:=pow(2,8);
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:Maths Functions]]
 
[[Category:Maths Functions]]

Revision as of 12:52, 13 January 2013

Overview

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

  • Pass: Two integers
  • Returns: A double representing the squared result

Example

var a:=pow(2,8);