Difference between revisions of "Sqr"

From Mesham
Jump to navigationJump to search
m
m (5 revisions imported)
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
This sqr(d) function will return the result of squaring ''d''.
 
This sqr(d) function will return the result of squaring ''d''.
  
* '''Pass:''' A double to square
+
* '''Pass:''' A [[Double]] to square
* '''Returns:''' A double representing the squared result
+
* '''Returns:''' A [[Double]] representing the squared result
  
 
== Example ==
 
== Example ==
  
  var a:=sqr(3.45);
+
  #include <maths.h>
 +
 +
function void main() {
 +
    var a:=sqr(3.45);
 +
};
 +
 
 +
''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 sqr(d) function will return the result of squaring d.

  • Pass: A Double to square
  • Returns: A Double representing the squared result

Example

#include <maths.h>

function void main() {
   var a:=sqr(3.45);
};

Since: Version 0.41b