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 (5 revisions imported)
 
(4 intermediate revisions by the same user not shown)
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 [[Int|Ints]]
* '''Returns:''' A double representing the result
+
* '''Returns:''' A [[Double]] representing the squared result
  
 
== Example ==
 
== Example ==
  
  var a:=pow[2,8];
+
  #include <maths>
 +
 +
function void main() {
 +
    var a:=pow(2,8);
 +
};
 +
 
 +
''Since: Version 0.41b''
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:Maths Functions]]
 
[[Category:Maths Functions]]

Latest revision as of 15:44, 15 April 2019

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>

function void main() {
   var a:=pow(2,8);
};

Since: Version 0.41b