public interface Integrator
| Modifier and Type | Method and Description |
|---|---|
Function |
getFunction()
Get the integration function
|
double |
getLowerBound()
Get the lower bound for the integration
|
double |
getUpperBound()
Get the upper bound for the integration
|
double |
integrate()
Calculate the integral \int_{lower_bound}^{upper_bound}function(x)dx
|
void |
setFunction(Function f)
Set the function to integrate;
|
void |
setLowerBound(double lower)
Set the lower bound for the integration
|
void |
setUpperBound(double upper)
Set the upper bound for the integration
|
void setLowerBound(double lower)
lower - double getLowerBound()
void setUpperBound(double upper)
lower - double getUpperBound()
void setFunction(Function f)
f - Function getFunction()
Copyright © 2020. All rights reserved.