suma f+g

diferenza f-g

produto f·g

cociente f/g

composición f°g

composición g°f

f(x) = exp(x)
g(x) = sin(x)
sum(x) = f(x) + g(x)
dif(x) = f(x) - g(x)
prod(x) = (f(x) * g(x))
coc(x) = f(x) / g(x)
fog(x) = f(g(x))
gof(x) = g(f(x))
X = Point(xAxis)
abscisa = OrthogonalLine(X, xAxis)
P_f = Intersect(f, abscisa, (1, 2.718281828459045))
b = OrthogonalLine(P_f, yAxis)
Y_f = Intersect(b, yAxis)
ordenada_f = Segment(P_f, Y_f)
P_g = Intersect(g, abscisa, (1, 0.8414709848078965))
P_{sum} = Intersect(sum, abscisa, (1, 3.5597528132669414))
P_{dif} = Intersect(dif, abscisa, (1, 1.8768108436511486))
P_{prod} = Intersect(prod, abscisa, (1, 2.2873552871788423))
P_{coc} = Intersect(coc, abscisa, (1, 3.2303928210663315))
P_{gof} = Intersect(gof, abscisa, (1, 0.41078129050290885))
P_{fog} = Intersect(fog, abscisa, (1, 2.319776824715853))
a = OrthogonalLine(P_g, yAxis)
c = OrthogonalLine(P_{sum}, yAxis)
d = OrthogonalLine(P_{dif}, yAxis)
e = OrthogonalLine(P_{prod}, yAxis)
h = OrthogonalLine(P_{coc}, yAxis)
i = OrthogonalLine(P_{gof}, yAxis)
j = OrthogonalLine(P_{fog}, yAxis)
Y_g = Intersect(a, yAxis)
Y_{sum} = Intersect(c, yAxis)
Y_{dif} = Intersect(d, yAxis)
Y_{prod} = Intersect(e, yAxis)
Y_{coc} = Intersect(h, yAxis)
Y_{gof} = Intersect(i, yAxis)
Y_{fog} = Intersect(j, yAxis)
ordenada_{coc} = Segment(Y_{coc}, P_{coc})
ordenada_{sum} = Segment(Y_{sum}, P_{sum})
ordenada_{dif} = Segment(Y_{dif}, P_{dif})
ordenada_{prod} = Segment(Y_{prod}, P_{prod})
ordenada_g = Segment(Y_g, P_g)
ordenada_{fog} = Segment(Y_{fog}, P_{fog})
ordenada_{gof} = Segment(Y_{gof}, P_{gof})
k = false
l = false
m = false
o = false
p = false
q = false