From Clomosy Docs

(Created page with " function Sin(const Number Extended):Extended; The Sin function is a mathematical function giving the Sine value of a Number value given radians.<br> '''Example:'''<br> '''const''' PI = 3.14;<br> '''var''' floatValue : float;<br> '''begin'''<br> floatValue := Sin(PI/6); ShowMessage('Sin(PI/6) = '+FloatToStr(floatValue));<br> '''end;''' '''Output:'''<br> Sin(PI/6) = 0,499770102643102")
 
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
function Sin(const Number Extended):Extended;
<div class="alert alert-ligth border border-3 border-primary-subtle rounded-5 p-4 shadow-sm" role="alert">
The Sin function is a mathematical function giving the Sine value of a Number value given radians.<br>
function Sin(const X: Extended): Extended;
</div>


The Sin function is a mathematical function giving the Sine value of a number value given radians.<br>


'''Example:'''<br>
<b>Example</b><br>
'''const'''
  PI = 3.14;<br>
'''var'''
  floatValue : float;<br>
'''begin'''<br>
  floatValue := Sin(PI/6);
  ShowMessage('Sin(PI/6) = '+FloatToStr(floatValue));<br>
'''end;'''


'''Output:'''<br>
<pre>
Sin(PI/6) =  0,499770102643102
const
  PI = 3.14;
var
  floatValue : float;
{
  floatValue = Sin(PI/6);
  ShowMessage('Sin(PI/6) = '+FloatToStr(floatValue));
}
</pre>
 
<b>Output:</b><br>
<div class="alert alert-success" role="alert" data-bs-theme="light">
Sin(PI/6) =  0,499770102643102
</div>
 
<h2> See Also </h2>
* [[System_Library#Math_Functions | Math Functions]]
{{#seo:|title=Sin Using in Clomosy - Clomosy Docs}}
{{#seo:|description=Learn how to use the Sin function in Clomosy to calculate the sine of a given angle in radians, with examples demonstrating its mathematical applications.}}

Latest revision as of 15:15, 24 December 2024

The Sin function is a mathematical function giving the Sine value of a number value given radians.

Example

 const
   PI = 3.14;
 
 var
   floatValue : float;
 
 {
 
   floatValue = Sin(PI/6);
   ShowMessage('Sin(PI/6) = '+FloatToStr(floatValue));
 
 }

Output:

See Also