mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +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:
@@ -11,7 +11,7 @@ using namespace Poincare;
|
||||
template<typename T>
|
||||
void assert_exp_is_bounded(Expression exp, T lowBound, T upBound, bool upBoundIncluded = false) {
|
||||
Shared::GlobalContext globalContext;
|
||||
T result = exp.approximateToScalar<T>(globalContext, Radian);
|
||||
T result = exp.approximateToScalar<T>(globalContext, Cartesian, Radian);
|
||||
quiz_assert(result >= lowBound);
|
||||
quiz_assert(result < upBound || (result == upBound && upBoundIncluded));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user