Difference between revisions of "Sqrt"
From Mesham
Jump to navigationJump to searchm (4 revisions imported) |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
This sqrt(d) function will return the result of square rooting ''d''. | This sqrt(d) function will return the result of square rooting ''d''. | ||
| − | * '''Pass:''' An | + | * '''Pass:''' An [[Double]] to find square root of |
| − | * '''Returns:''' A | + | * '''Returns:''' A [[Double]] which is the square root |
== Example == | == Example == | ||
#include <maths> | #include <maths> | ||
| − | var a:=sqrt(8.3); | + | |
| + | function void main() { | ||
| + | var a:=sqrt(8.3); | ||
| + | }; | ||
| + | |||
| + | ''Since: Version 0.41b'' | ||
[[Category:Function Library]] | [[Category:Function Library]] | ||
[[Category:Maths Functions]] | [[Category:Maths Functions]] | ||