Skip to content

Commit

Permalink
ExpressionSolve: fixed sign in pow(x,y) = z with respect to x
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24258 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Vitalij Ruge committed Jan 28, 2015
1 parent e2e0896 commit a9f97c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Compiler/BackEnd/ExpressionSolve.mo
Expand Up @@ -1627,6 +1627,7 @@ algorithm
(exP, eqnForNewVars_, newVarsCrefs_) = makeTmpEqnAndCrefFromExp(exP, tp, "X$ABS", uniqueEqIndex, idepth, ieqnForNewVars, inewVarsCrefs, false);
e_1 = Expression.makePureBuiltinCall("$_signNoNull", {exP}, tp);
lhs = Expression.expPow(inExp2,Expression.inverseFactors(e2));
lhs = Expression.makePureBuiltinCall("abs", {lhs}, tp);
lhs = Expression.expMul(e_1,lhs);

then(e1, lhs, true, eqnForNewVars_, newVarsCrefs_, idepth + 1);
Expand Down

0 comments on commit a9f97c5

Please sign in to comment.