Difference between revisions of "Cos"

From Mesham
Jump to navigationJump to search
m
Line 10: Line 10:
  
 
  #include <maths>
 
  #include <maths>
  var a:=cos(10.4);
+
   
var y:=cos(a);
+
function void main() {
 +
    var a:=cos(10.4);
 +
    var y:=cos(a);
 +
};
  
 
''Since: Version 0.41b''
 
''Since: Version 0.41b''

Revision as of 14:31, 15 April 2013

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