cdef api float f(float x):
    return 0.5 * x * x
