List of usage examples for java.util.stream DoubleStream iterate
public static DoubleStream iterate(final double seed, final DoubleUnaryOperator f)
From source file:Main.java
public static void main(String[] args) { DoubleStream i = DoubleStream.iterate(1.2, d -> d * d); i.limit(3).forEach(System.out::println); }
From source file:pl.umk.lgorski.Equation.java
public double[] initialConditions() { return DoubleStream.iterate(2, x -> x).limit(getDimension()).toArray(); }