Class Pi.GaussLegendrePiCalculator

    • Constructor Detail

      • GaussLegendrePiCalculator

        public GaussLegendrePiCalculator​(long precision,
                                         int radix)
        Construct a pi calculator with the specified precision and radix.
        Parameters:
        precision - The target precision.
        radix - The radix to be used.
    • Method Detail

      • execute

        public Apfloat execute()
        Calculate pi using the Gauss-Legendre iteration.
        Specified by:
        execute in interface Operation<Apfloat>
        Returns:
        Return value of the operation.