aboutsummaryrefslogtreecommitdiffstats
path: root/modelica-parser-lalrpop/examples/modelica_models
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-12-18 23:02:38 -0800
committerbnewbold <bnewbold@robocracy.org>2016-12-18 23:02:38 -0800
commit25ec87c63a5ba79846e147e3d153bf8d884a664e (patch)
tree84e5facf3113b92fb0fd822d6ea315615ce1a47c /modelica-parser-lalrpop/examples/modelica_models
parent24b2dc9c022cf1daa95418328019d12e5198b06b (diff)
downloadmodelthing-25ec87c63a5ba79846e147e3d153bf8d884a664e.tar.gz
modelthing-25ec87c63a5ba79846e147e3d153bf8d884a664e.zip
parser: more weird examples
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;