Class Pi.BorweinPiCalculator

    • Constructor Detail

      • BorweinPiCalculator

        public BorweinPiCalculator​(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 Borweins' quartic iteration.
        Specified by:
        execute in interface Operation<Apfloat>
        Returns:
        Return value of the operation.