mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/sequence][apps/graph] Fix bug
Change-Id: I998421900b993099c16d19fa825f8e4d180ed22c
This commit is contained in:
@@ -60,7 +60,7 @@ const char * Function::name() const {
|
||||
return m_name;
|
||||
}
|
||||
|
||||
Poincare::Expression * Function::expression() {
|
||||
Poincare::Expression * Function::expression() const {
|
||||
if (m_expression == nullptr) {
|
||||
m_expression = Expression::parse(m_text);
|
||||
}
|
||||
@@ -95,7 +95,7 @@ float Function::evaluateAtAbscissa(float x, Poincare::Context * context) const {
|
||||
Poincare::Symbol xSymbol = Poincare::Symbol(symbol());
|
||||
Poincare::Complex e = Poincare::Complex::Float(x);
|
||||
variableContext.setExpressionForSymbolName(&e, &xSymbol);
|
||||
return m_expression->approximate(variableContext);
|
||||
return expression()->approximate(variableContext);
|
||||
}
|
||||
|
||||
void Function::tidy() {
|
||||
|
||||
Reference in New Issue
Block a user