Difference between revisions of "Pi"

From Lazarus wiki
Jump to navigationJump to search
(review)
Line 1: Line 1:
 
{{Pi}}
 
{{Pi}}
  
Pi is the ratio of the circumference of a circle to its diameter.
+
π (greek letter pi) is the ratio of the circumference of a circle to its diameter.
Pi is about 3.14159265358979. A full circle has 2*Pi [[Radian|radians]].
+
π is about <code>3.14159265358979</code>.
In [[Pascal]], Pi is a [[Function|function]] which returns the value of pi.
+
A full circle has <code>2*pi()</code> [[Radian|radians]].
  
Pi/4 is the same as arctan(1).
+
In [[Pascal]], <code>system.pi</code> is a [[Function|function]] which returns the value of π.
 +
This gives you the chance to shadow (redefine) <code>pi()</code>.
 +
 
 +
<code>pi()/4</code> is the same as <code>arctan(1)</code>.
  
  
 
== See also ==
 
== See also ==
 
* [[doc:rtl/system/pi.html|Pi]]
 
* [[doc:rtl/system/pi.html|Pi]]
* [[doc:rtl/system/arctan.html|ArcTan]] Calculate arctangent.
+
* [[doc:rtl/system/arctan.html|ArcTan]] calculate arc tangent.

Revision as of 14:32, 24 January 2018

Deutsch (de) English (en) suomi (fi) français (fr) русский (ru) 中文(中国大陆)‎ (zh_CN)

π (greek letter pi) is the ratio of the circumference of a circle to its diameter. π is about 3.14159265358979. A full circle has 2*pi() radians.

In Pascal, system.pi is a function which returns the value of π. This gives you the chance to shadow (redefine) pi().

pi()/4 is the same as arctan(1).


See also