Skip to content

Commit

Permalink
ExpressionSolve:
Browse files Browse the repository at this point in the history
improved handling of sqrt



git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23841 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Vitalij Ruge committed Dec 17, 2014
1 parent 6650324 commit 0312dda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Compiler/BackEnd/ExpressionSolve.mo
Expand Up @@ -1487,6 +1487,9 @@ algorithm
guard(Expression.isOne(e1))
then(e2, DAE.RCONST(-1.0));

case(DAE.CALL(path=Absyn.IDENT("sqrt"),expLst={e}))
then ((e,DAE.RCONST(0.5)));

case (e) then ((e,DAE.RCONST(1.0)));

end match;
Expand Down

0 comments on commit 0312dda

Please sign in to comment.