mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 01:00:50 +01:00
[poincare] Step I: add a parameter to approximation routines to indicate
if we're within a reduction routine
This commit is contained in:
@@ -33,7 +33,7 @@ const Expression VariableContext::expressionForSymbolAbstract(const SymbolAbstra
|
||||
Symbol unknownSymbol = Symbol::Builder(UCodePointUnknown);
|
||||
if (m_name != nullptr && strcmp(m_name, unknownSymbol.name()) == 0) {
|
||||
assert(std::isnan(unknownSymbolValue));
|
||||
unknownSymbolValue = m_value.approximateToScalar<float>(this, Preferences::sharedPreferences()->complexFormat(),Preferences::sharedPreferences()->angleUnit());
|
||||
unknownSymbolValue = m_value.approximateToScalar<float>(this, Preferences::sharedPreferences()->complexFormat(), Preferences::sharedPreferences()->angleUnit(), true);
|
||||
}
|
||||
return ContextWithParent::expressionForSymbolAbstract(symbol, clone, unknownSymbolValue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user