Constant

  • pi

    The mathematical constant

    Originally defined as the ratio of a circle’s circumference to its diameter, it now has various equivalent definitions and appears in many formulas in all areas of mathematics and physics. It is approximately equal to 3.14159. It has been represented by the Greek letter “π” since the mid-18th century, though it is also sometimes spelled out as “pi”. It is also called Archimedes’ constant.

    Declaration

    Swift

    public var pi: BigNumber { get }
  • e

    The mathematical constant

    The number e is a mathematical constant that is the base of the natural logarithm: the unique number whose natural logarithm is equal to one. It is approximately equal to 2.71828, and is the limit of (1 + 1/n)n as n approaches infinity, an expression that arises in the study of compound interest. It can also be calculated as the sum of the infinite series

    Declaration

    Swift

    public var e: BigNumber { get }
  • A list of important mathematical and physical constants

    See more

    Declaration

    Swift

    public enum Constant : String