From Clomosy Docs

No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:


<b>Example</b><br>
<b>Example</b><br>
<b>TRObject Syntax</b><br>
 
<pre>
<pre>
  const
  const
Line 20: Line 20:
   
   
  }
  }
</pre>
<b>Base Syntax</b><br>
<pre>
const
  PI = 3.14;
var
  floatValue : float;
begin
  floatValue := Sin(PI/6);
  ShowMessage('Sin(PI/6) = '+FloatToStr(floatValue));
end;
</pre>
</pre>


Line 44: Line 29:
<h2> See Also </h2>
<h2> See Also </h2>
* [[System_Library#Math_Functions | Math Functions]]
* [[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