mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 06:40:37 +01:00
[apps] Add a function "sumBetweenBounds()" on Function (sum of terms on
Sequence, Integral on CartesianFunction)
This commit is contained in:
committed by
EmilieNumworks
parent
7ea0dbeb56
commit
cdfbc02499
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user