Calculates the Taylor series
y = 1 + sum(c[k]*x^k)
function taylor extends Modelica.Icons.Function; input Real x "argument"; input Real[:] c "coefficients"; output Real y "sum(c[n]*x^n)"; end taylor;