Package tools
Class IntegralTools
Object
IntegralTools
public class IntegralTools
extends Object
The
IntegralTools
class contains miscellaneous methods used in tools.integration
.-
Method Summary
Modifier and Type Method Description static Pair<GeneralFunction,GeneralFunction>
stripConstantsRespectTo(GeneralFunction function, String varID)
-
Method Details
-
stripConstantsRespectTo
public static Pair<GeneralFunction,GeneralFunction> stripConstantsRespectTo(GeneralFunction function, String varID)Iffunction
is not aProduct
, returns<1.0, function>
. Otherwise, stripsfunction
of any functions that are constant relative tovarID
and returns aPair
of the constant function and the remaining stripped function. Ex:2xy, 'x'
becomes<2y, x>
- Parameters:
function
- TheGeneralFunction
whose relative constants are being strippedvarID
- the variable to strip with respect to (i.e.varID='x'
would mean2y
is a constant)- Returns:
- A
Pair
of the constant function and the remaining stripped function
-