Difference between revisions of "Pi"

From Lazarus wiki
Jump to navigationJump to search
m (links via Template:Doc)
(removed unsourced claim)
Line 5: Line 5:
 
A full circle has <code>2*pi()</code> [[Radian|radians]].
 
A full circle has <code>2*pi()</code> [[Radian|radians]].
  
In [[Pascal]], <code>system.pi</code> is a [[Function|function]] which returns the value of π.
+
In [[Free 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>.
 
<code>pi()/4</code> is the same as <code>arctan(1)</code>.

Revision as of 18:30, 27 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 Free Pascal, system.pi is a function which returns the value of π.

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


See also