docs

a slatepencil documentail site

View on GitHub

Define a procedure evalQuadratic(a, b, c, x) that returns the value of the quadratic a + x2 + b x + c. Your function should have type (num, num, num, num) -> num.

import math
def evalQuadratic(a, b, c, x):
    return a + x * x + b * x + c