f(x)=x^3+1

f(x) = x^(3.0) + 1.0
h(x) = -(x^(3.0) + 1.0)
q = Function(f(x), 0.0, 2.0)
s = Function(h(x), 0.0, 2.0)
A = (2, 9)
B = (2, -9)
C = (0, 9)
D = (0, -9)
a = Segment(A, C)
b = Segment(A, B)
c = Segment(B, D)
d = Integral(q, 0.0, 2.0)
e = Integral(s, 0.0, 2.0)