mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 01:00:50 +01:00
[poincare] Refactor the first lines of shallowReduce
This commit is contained in:
@@ -17,8 +17,8 @@ Expression * ComplexArgument::clone() const {
|
||||
}
|
||||
|
||||
Expression ComplexArgument::shallowReduce(Context& context, Preferences::AngleUnit angleUnit) const {
|
||||
Expression * e = Expression::defaultShallowReduce(context, angleUnit);
|
||||
if (e != this) {
|
||||
Expression e = Expression::defaultShallowReduce(context, angleUnit);
|
||||
if (e.isUndefinedOrAllocationFailure()) {
|
||||
return e;
|
||||
}
|
||||
#if MATRIX_EXACT_REDUCING
|
||||
|
||||
Reference in New Issue
Block a user