Difference between revisions of "Sin"

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

Revision as of 14:38, 15 April 2013

Overview

This sin(d) function will find the sine of the value or variable d passed to it.

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

Example

#include <maths>

function void main() {
   var a:=sin(98.54);
   var y:=sin(a);
};

Since: Version 0.41b