aboutsummaryrefslogtreecommitdiffstats
path: root/modelica-parser-lalrpop/examples/modelica_models
diff options
context:
space:
mode:
Diffstat (limited to 'modelica-parser-lalrpop/examples/modelica_models')
-rw-r--r--modelica-parser-lalrpop/examples/modelica_models/polynomial_evaluator.mo14
1 files changed, 0 insertions, 14 deletions
diff --git a/modelica-parser-lalrpop/examples/modelica_models/polynomial_evaluator.mo b/modelica-parser-lalrpop/examples/modelica_models/polynomial_evaluator.mo
deleted file mode 100644
index f11d375..0000000
--- a/modelica-parser-lalrpop/examples/modelica_models/polynomial_evaluator.mo
+++ /dev/null
@@ -1,14 +0,0 @@
-block PolynomialEvaluator
- parameter Real a[:];
- input Real x;
- output Real y;
-protected
- constant n = size(a, 1)-1;
- Real xpowers[n+1];
-equation
- xpowers[1] = 1;
- for i in 1:n loop
- xpowers[i+1] = xpowers[i]*x;
- end for;
- y = transpose(a) * xpowers;
-end PolynomialEvaluator;