public class IntervalSin extends IntervalOneVariableFunction
interval, intervalFactory, numberOfSections
Constructor and Description |
---|
IntervalSin(Interval interval,
int number)
constructor that defines the input interval and the number of parts of the interval for calculation,
default intervalFactory is used for result interval
|
IntervalSin(Interval interval,
int number,
IntervalFactory intervalFactory)
constructor that defines the input interval, the number of parts of the interval for calculation
and intervalFactory used to create the result interval
|
Modifier and Type | Method and Description |
---|---|
double |
calculate(double x)
actual function that calculates value of the function for input x
|
protected Interval |
specialCases()
function for special cases of propagation of the interval through the function
returns null if the special cases are not valid for this interval or the resulting interval
|
java.lang.String |
toString()
each function must override this function with its name
|
propagate, setInterval
public IntervalSin(Interval interval, int number)
interval
- number
- public IntervalSin(Interval interval, int number, IntervalFactory intervalFactory)
interval
- number
- intervalFactory
- protected Interval specialCases()
IntervalOneVariableFunction
specialCases
in class IntervalOneVariableFunction
public double calculate(double x)
IntervalOneVariableFunction
calculate
in class IntervalOneVariableFunction
x
- input value for which the output is calculatedpublic java.lang.String toString()
IntervalOneVariableFunction
toString
in class IntervalOneVariableFunction