Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

weird results for the solution of a simple equation !!!!

weird results for the solution of a simple equation !!!!

OM: revision-539229e

for the simple following model, i get a wrong answer. why?

Code:


model a
  Real x1;
  Real x2;
equation
  x1 + x2 = 0;
  x1 - x2 = 1;
end a;

results:

x1=0.5;
x2=0;

Re: weird results for the solution of a simple equation !!!!

There are 0 guests and 0 other users also viewing this topic
You are here: