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)Iffunctionis not aProduct, returns<1.0, function>. Otherwise, stripsfunctionof any functions that are constant relative tovarIDand returns aPairof the constant function and the remaining stripped function. Ex:2xy, 'x'becomes<2y, x>- Parameters:
function- TheGeneralFunctionwhose relative constants are being strippedvarID- the variable to strip with respect to (i.e.varID='x'would mean2yis a constant)- Returns:
- A
Pairof the constant function and the remaining stripped function
-