Skip to content

Commit

Permalink
fixed #2787
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21955 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Vitalij Ruge committed Aug 22, 2014
1 parent 23faeaa commit e66c1dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Compiler/BackEnd/ExpressionSolve.mo
Expand Up @@ -254,6 +254,11 @@ algorithm
e2 = DAE.BINARY(inExp2,DAE.POW(tp),res);
(res, asserts) = solve(e1,e2,inExp3);
then (res, asserts);
// semiLinear(0, a, b) = 0 => a = b // rule 1
case (DAE.CALL(path = Absyn.IDENT(name = "semiLinear"),expLst = {DAE.RCONST(real = 0.0), e1, e2}),DAE.RCONST(real = 0.0),DAE.CREF(componentRef = cr))
equation
(res, asserts) = solve(e1,e2,inExp3);
then (res, asserts);
// (r1)^f(a) = r2 => f(a) = ln(r2)/ln(r1)
case (DAE.BINARY(e11 as DAE.RCONST(r),DAE.POW(_),e2), DAE.RCONST(r2), DAE.CREF(componentRef = cr))
equation
Expand Down

0 comments on commit e66c1dd

Please sign in to comment.