[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

@@ -27,11 +27,6 @@ bool TermSumController::moveCursorHorizontallyToPosition(double position) {
return SumGraphController::moveCursorHorizontallyToPosition(std::round(position));
}
double TermSumController::computeSum(double start, double end) {
App * myApp = static_cast<App *>(app());
return static_cast<Sequence *>(m_function)->sumOfTermsBetweenAbscissa(m_startSum, m_endSum, myApp->localContext());
}
I18n::Message TermSumController::legendMessageAtStep(Step step) {
switch(step) {
case Step::FirstParameter: