Difference between revisions of "Cos"

From Mesham
Jump to navigationJump to search
m
m (8 revisions imported)
 
(One intermediate revision by the same user not shown)
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''

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