Class QuadrupleMath

java.lang.Object
gaiasky.util.math.QuadrupleMath

public final class QuadrupleMath extends Object
Approximates some trigonometric functions using double-precision arithmetics. It also contains the implementation of Object.toString().
  • Field Details

  • Method Details

    • pi

      public static Quadruple pi()
    • pi2

      public static Quadruple pi2()
    • piOver2

      public static Quadruple piOver2()
    • atan

      public static Quadruple atan(Quadruple x)
      High-level arctan for any x: If |x|≤1, directly use series; else use identity atan(x)=sign(x)*(PI/2 − atan(1/|x|)).
    • atan2

      public static Quadruple atan2(Quadruple y, Quadruple x)
      Quadrant-aware atan2: y=opposite, x=adjacent