public final class TimesFunction extends DoubleDoubleFunction
Constructor and Description |
---|
TimesFunction() |
Modifier and Type | Method and Description |
---|---|
double |
apply(double x,
double y)
Computes the product of two numbers.
|
boolean |
isAssociative()
x * (y * z) = (x * y) * z for any x, y, z
|
boolean |
isCommutative()
x * y = y * x for any x, y
|
boolean |
isLikeLeftMult()
0 * y = 0 for any y
|
boolean |
isLikeRightMult()
x * 0 = 0 for any x
|
boolean |
isLikeRightPlus()
x * 0 = y only if y = 0
|
isAssociativeAndCommutative, isDensifying, isLikeMult
public double apply(double x, double y)
apply
in class DoubleDoubleFunction
x
- first argumenty
- second argumentpublic boolean isLikeRightPlus()
isLikeRightPlus
in class DoubleDoubleFunction
public boolean isLikeLeftMult()
isLikeLeftMult
in class DoubleDoubleFunction
public boolean isLikeRightMult()
isLikeRightMult
in class DoubleDoubleFunction
public boolean isCommutative()
isCommutative
in class DoubleDoubleFunction
public boolean isAssociative()
isAssociative
in class DoubleDoubleFunction
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.