mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-25 00:30:46 +01:00
[poincare] Create a a flag on Expression that is set when the
approximation encouters a complex value All approximation methods take the complex format into account.
This commit is contained in:
@@ -12,7 +12,7 @@ using namespace Poincare;
|
||||
|
||||
static inline void assert_approximation_equals(const Expression i, float f) {
|
||||
Shared::GlobalContext c;
|
||||
quiz_assert(i.approximateToScalar<float>(c, Preferences::AngleUnit::Degree) == f);
|
||||
quiz_assert(i.approximateToScalar<float>(c, Cartesian, Degree) == f);
|
||||
}
|
||||
|
||||
static inline void assert_parsed_expression_is_equal_to(const char * exp, Expression e) {
|
||||
|
||||
Reference in New Issue
Block a user