[apps/graph][apps/sequence] Add comments

This commit is contained in:
Émilie Feral
2019-10-04 16:23:14 +02:00
committed by LeaNumworks
parent d4f6f5a477
commit a19edb4460
2 changed files with 2 additions and 2 deletions

View File

@@ -259,7 +259,7 @@ int ValuesController::absoluteColumnForValuesColumn(int column) {
}
void ValuesController::fillMemoizedBuffer(int column, int row, int index) {
double abscissa = intervalAtColumn(column)->element(row-1);
double abscissa = intervalAtColumn(column)->element(row-1); // Subtract the title row from row to get the element index
bool isDerivative = false;
double evaluationX = NAN;
double evaluationY = NAN;

View File

@@ -91,7 +91,7 @@ Shared::Interval * ValuesController::intervalAtColumn(int columnIndex) {
void ValuesController::fillMemoizedBuffer(int column, int row, int index) {
char * buffer = memoizedBufferAtIndex(index);
double abscissa = intervalAtColumn(column)->element(row-1);
double abscissa = intervalAtColumn(column)->element(row-1); // Subtract the title row from row to get the element index
Shared::ExpiringPointer<Sequence> sequence = functionStore()->modelForRecord(recordAtColumn(column));
Coordinate2D<double> xy = sequence->evaluateXYAtParameter(abscissa, textFieldDelegateApp()->localContext());
Shared::PoincareHelpers::ConvertFloatToText<double>(xy.x2(), buffer, k_valuesCellBufferSize, Preferences::LargeNumberOfSignificantDigits);