[apps] Add a function "sumBetweenBounds()" on Function (sum of terms on

Sequence, Integral on CartesianFunction)
This commit is contained in:
Émilie Feral
2018-01-10 14:35:32 +01:00
committed by EmilieNumworks
parent 7ea0dbeb56
commit cdfbc02499
9 changed files with 17 additions and 10 deletions

View File

@@ -357,7 +357,7 @@ T Sequence::approximateToNextRank(int n, SequenceContext * sqctx) const {
}
}
double Sequence::sumOfTermsBetweenAbscissa(double start, double end, Context * context) {
double Sequence::sumBetweenBounds(double start, double end, Context * context) const {
double result = 0.0;
if (end-start > k_maxNumberOfTermsInSum || start + 1.0 == start) {
return NAN;