25 assert(nc->a() == 123.456f);
35 assert(a->
r() == 3.60555124f && a->
th() == 0.982793748f);
51 assert(
c->a() == -2.0e20f &&
c->b() == 2.0e20f);
56 assert(d->
a() == 1.0e155 && d->
b() == -1.0e155);
Expression::Type type() const override
static Complex< T > Cartesian(T a, T b)
Expression * approximate(Context &context, AngleUnit angleUnit=AngleUnit::Default) const
static Complex< T > Polar(T r, T theta)
QUIZ_CASE(poincare_complex_evaluate)
void assert_parsed_expression_simplify_to(const char *expression, const char *simplifiedExpression, Expression::AngleUnit angleUnit)
static Complex< T > Float(T x)
virtual Type type() const =0