import math


def demo_score(i):
    """Score an individual by fit to ax^2+bx+c = e^x in the range [0,1]"""
    a = i["a"]
    b = i["b"]
    c = i["c"]
    total = 0
    for i in range(100):
      x = i * 0.01
      total += (a*x*x+b*x+c-math.exp(x))**2
    return -total