Formule C

n(x) = 0.5 * x^(2.0) - 10.0 * x + 300.0
p = Function(n, 0.0, 30.0)