Difference between revisions of "Cos"

From Mesham
Jump to navigationJump to search
m
m (8 revisions imported)
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
This cos(d) function will find the cosine of the value or variable ''d'' passed to it.
 
This cos(d) function will find the cosine of the value or variable ''d'' passed to it.
  
* '''Pass:''' A double to find cosine of
+
* '''Pass:''' A [[Double]] to find cosine of
  
* '''Returns:''' A double representing the cosine
+
* '''Returns:''' A [[Double]] representing the cosine
  
 
== Example ==
 
== Example ==
  
  var a:=cos(10.4);
+
  #include <maths>
var y:=cos(a);
+
 +
function void main() {
 +
    var a:=cos(10.4);
 +
    var y:=cos(a);
 +
};
 +
 
 +
''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 cos(d) function will find the cosine of the value or variable d passed to it.

  • Pass: A Double to find cosine of
  • Returns: A Double representing the cosine

Example

#include <maths>

function void main() {
   var a:=cos(10.4);
   var y:=cos(a);
};

Since: Version 0.41b