Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Modelica. Parent comment
> Let us consider an extremely simple differential equation:
x = (1-X)
Looking at this equation, we see there is only one variable, x
This equation can be represented in Modelica as follows:
model FirstOrder Real x; equation der(x) = 1-x; end FirstOrder;
The model keyword is followed by the model name, FirstOrder. This, in turn, is followed by a declaration of all the variables we are interested in.
[et cetera]
There are no comments on this comment yet.
> Let us consider an extremely simple differential equation:
x = (1-X)
Looking at this equation, we see there is only one variable, x
This equation can be represented in Modelica as follows:
This code starts with the keyword model which is used to indicate the start of the model definition.The model keyword is followed by the model name, FirstOrder. This, in turn, is followed by a declaration of all the variables we are interested in.
[et cetera]