Difference between revisions of "Cos"

From Mesham
Jump to navigationJump to search
m
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
  
This cos[d] function will find the cosine of the value or variable ''d'' passed to it.
+
This cos(d) function will find the cosine of the value or variable ''d'' passed to it.
  
* '''Pass:''' A double to find cosine of
+
* '''Pass:''' A [[Double]] to find cosine of
  
* '''Returns:''' A double representing the cosine
+
* '''Returns:''' A [[Double]] representing the cosine
  
 
== Example ==
 
== Example ==
  
 +
#include <maths>
 
  var a:=cos(10.4);
 
  var a:=cos(10.4);
 
  var y:=cos(a);
 
  var y:=cos(a);
 +
 +
''Since: Version 0.41b''
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:Maths Functions]]
 
[[Category:Maths Functions]]

Revision as of 18:30, 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);

Since: Version 0.41b