Difference between revisions of "Cos"

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

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