Class Demo2_LazySqrt


  • public class Demo2_LazySqrt
    extends Object
    Demo showing computation of square root using lazy sequences.
    Author:
    Herbert Praehofer
    • Field Detail

      • EPSILON

        private static double EPSILON
    • Constructor Detail

      • Demo2_LazySqrt

        public Demo2_LazySqrt()
    • Method Detail

      • sqrtIterator

        public static Iterator<Double> sqrtIterator​(double x)
      • sqrtIterable

        public static Iterable<Double> sqrtIterable​(double x)
      • sqrtApprox

        public static Iterable<Double> sqrtApprox​(double x)
      • sqrt

        public static double sqrt​(double x)
      • sqrtImperative

        public static double sqrtImperative​(double x)