Difference between revisions of "Sin"

From Mesham
Jump to navigationJump to search
m
m
Line 9: Line 9:
 
== Example ==
 
== Example ==
  
 +
#include <maths>
 
  var a:=sin(98.54);
 
  var a:=sin(98.54);
 
  var y:=sin(a);
 
  var y:=sin(a);

Revision as of 12:45, 13 January 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>
var a:=sin(98.54);
var y:=sin(a);