From 25ec87c63a5ba79846e147e3d153bf8d884a664e Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 18 Dec 2016 23:02:38 -0800 Subject: parser: more weird examples --- .../examples/modelica_models/polynomial_evaluator.mo | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 modelica-parser-lalrpop/examples/modelica_models/polynomial_evaluator.mo (limited to 'modelica-parser-lalrpop/examples/modelica_models') 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; -- cgit v1.2.3