/** * <tt>a - b*constant</tt>. */ public static PlusMult minusMult(final double constant) { return new PlusMult(-constant); } /**
/** * <tt>a + b/constant</tt>. */ public static PlusMult plusDiv(final double constant) { return new PlusMult(1/constant); } /**
/** * <tt>a + b*constant</tt>. */ public static PlusMult plusMult(final double constant) { return new PlusMult(constant); } }
/** * <tt>a + b*constant</tt>. */ public static PlusMult plusMult(final double constant) { return new PlusMult(constant); } }
/** * <tt>a - b/constant</tt>. */ public static PlusMult minusDiv(final double constant) { return new PlusMult(-1/constant); } /**
/** * Constructs a function that returns <tt>a + b*constant</tt>. * <tt>a</tt> and <tt>b</tt> are variables, <tt>constant</tt> is fixed. */ public static DoubleDoubleFunction plusMult(double constant) { return new PlusMult(constant); /* return new DoubleDoubleFunction() { public final double apply(double a, double b) { return a + b*constant; } }; */ } /**
/** * <tt>a - b/constant</tt>. */ public static PlusMult minusDiv(final double constant) { return new PlusMult(-1/constant); } /**
/** * <tt>a - b*constant</tt>. */ public static PlusMult minusMult(final double constant) { return new PlusMult(-constant); } /**
/** * <tt>a + b/constant</tt>. */ public static PlusMult plusDiv(final double constant) { return new PlusMult(1/constant); } /**
/** * Constructs a function that returns <tt>a + b*constant</tt>. * <tt>a</tt> and <tt>b</tt> are variables, <tt>constant</tt> is fixed. */ public static DoubleDoubleFunction plusMult(double constant) { return new PlusMult(constant); /* return new DoubleDoubleFunction() { public final double apply(double a, double b) { return a + b*constant; } }; */ } /**