[shared] StorageCartesianFunction: sumBetweenBounds does not work, add a

comment to explain why
This commit is contained in:
Émilie Feral
2018-10-23 17:20:19 +02:00
parent 344351f5c2
commit c09056b98a

View File

@@ -93,6 +93,7 @@ double StorageCartesianFunction::approximateDerivative(double x, Poincare::Conte
}
double StorageCartesianFunction::sumBetweenBounds(double start, double end, Poincare::Context * context) const {
// TODO: this does not work yet because integral does not understand UnknownX
Poincare::Integral integral(expression(context).clone(), Poincare::Float<double>(start), Poincare::Float<double>(end)); // Integral takes ownership of args
/* TODO: when we approximate integral, we might want to simplify the integral
* here. However, we might want to do it once for all x (to avoid lagging in