mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
Merge branch 'cas_with_app_copy' into python_console
This commit is contained in:
@@ -102,9 +102,9 @@ bool Function::isEmpty() {
|
||||
template<typename T>
|
||||
T Function::templatedEvaluateAtAbscissa(T x, Poincare::Context * context) const {
|
||||
Poincare::VariableContext<T> variableContext = Poincare::VariableContext<T>(symbol(), context);
|
||||
Poincare::Symbol xSymbol = Poincare::Symbol(symbol());
|
||||
Poincare::Symbol xSymbol(symbol());
|
||||
Poincare::Complex<T> e = Poincare::Complex<T>::Float(x);
|
||||
variableContext.setExpressionForSymbolName(&e, &xSymbol);
|
||||
variableContext.setExpressionForSymbolName(&e, &xSymbol, variableContext);
|
||||
return expression()->approximate<T>(variableContext);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user