Difference between revisions of "Sqrt"

From Mesham
Jump to navigationJump to search
(Created page with '== Overview == This sqrt[n] function will return the result of square rooting ''n''. * '''Pass:''' An integer to find square root of * '''Returns:''' A double which is the squa…')
 
m (4 revisions imported)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
  
This sqrt[n] function will return the result of square rooting ''n''.
+
This sqrt(d) function will return the result of square rooting ''d''.
  
* '''Pass:''' An integer to find square root of
+
* '''Pass:''' An [[Double]] to find square root of
* '''Returns:''' A double which is the square root
+
* '''Returns:''' A [[Double]] which is the square root
  
 
== Example ==
 
== Example ==
  
  var a:=sqrt[8];
+
  #include <maths>
 +
 +
function void main() {
 +
    var a:=sqrt(8.3);
 +
};
 +
 
 +
''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 sqrt(d) function will return the result of square rooting d.

  • Pass: An Double to find square root of
  • Returns: A Double which is the square root

Example

#include <maths>

function void main() {
   var a:=sqrt(8.3);
};

Since: Version 0.41b