A

B

g

f

h

f = Function(sin(x), 0, 6.283185307179586)
g = Function(sin(x + π / 3), 0, 6.28319)
h = Function(0.5 * (f(x) + g(x)), 0, 6.283185307179586)