mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 13:50:28 +01:00
[poincare] Replace complex constructors by named constructors
Change-Id: I6aad82edfb1bd243c4537a48888655608b90eeb5
This commit is contained in:
@@ -95,7 +95,7 @@ int Function::numberOfOperands() const {
|
||||
Expression * Function::privateEvaluate(Context& context, AngleUnit angleUnit) const {
|
||||
assert(angleUnit != AngleUnit::Default);
|
||||
/* Default function evaluation works for reel function */
|
||||
return new Complex(approximate(context, angleUnit));
|
||||
return new Complex(Complex::Float(approximate(context, angleUnit)));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user