Cos: Difference between revisions

262 bytes removed ,  17 May 2024
Updated and revisited the page
(Created page with "Computes the cosine of an angle in degrees. File:Cos1.png == Input/Output == Similar to the function Sin but instead, the output value starts from 1. Outputs value between 1 and -1 depending on the given input which, scales from angular (0°–360°) == Notes == Additionally, there are only 4 certain points where you can get a whole number: * 0°/360° = 1 * 90° = 0 * 180° = -1 * 270° = 0 To understand better, search for "[https://www.google.com/search?q=...")
 
(Updated and revisited the page)
 
Line 1: Line 1:
Computes the cosine of an angle in degrees.
{{Block
|image=Cos.png
|type=s
|folder=math
|input1={{Port|n|Num}}
|output1={{Port|n|Cos(Num)}}
}}
Computes the [https://en.wikipedia.org/wiki/Sine_and_cosine cosine] of an angle in degrees.


[[File:Cos1.png]]
Similar to the function [[Sin]] but instead, the output value starts from 1.
 
Outputs a value between 1 and -1 depending on the given input, which represents an angle (0°–360°).
== Input/Output ==
Similar to the function [[Sin]] but instead, the output value starts from 1. Outputs value between 1 and -1 depending on the given input which, scales from angular (0°–360°)
 
== Notes ==
 
Additionally, there are only 4 certain points where you can get a whole number:
* 0°/360° = 1
* 90° = 0
* 180° = -1
* 270° = 0
 
To understand better, search for "[https://www.google.com/search?q=trigonometric+functions|Trigonometric functions]."
 
== Example ==
 
* You can refer to the example in [sin](https://www.fancade.com/wiki/Blocks/Sin.md#example).




[[Category:Blocks]]
[[Category:Blocks]]