Here:
|
Real yp; |
|
equation |
|
yf = Polynomial(time, {1, -2, 2}); |
|
yp = time^2-2*time+2; |
The equation yp = time^2-2*time+2 is questionable from a unit perspective, since it subtracts things with units s2 and s, which are not compatible units.
The same issue exists in the model Differentiation2.
Here:
ModelicaBook/ModelicaByExample/Functions/Polynomials/EvaluationTest1.mo
Lines 4 to 7 in a8677a6
The equation
yp = time^2-2*time+2is questionable from a unit perspective, since it subtracts things with unitss2ands, which are not compatible units.The same issue exists in the model
Differentiation2.