Difference between revisions of "Sqr"

From Mesham
Jump to navigationJump to search
m
m
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 ==
Line 10: Line 10:
 
  #include <maths.h>
 
  #include <maths.h>
 
  var a:=sqr(3.45);
 
  var a:=sqr(3.45);
 +
 +
''Since: Version 0.41b''
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:Maths Functions]]
 
[[Category:Maths Functions]]

Revision as of 18:40, 13 January 2013

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>
var a:=sqr(3.45);

Since: Version 0.41b