f(x) =

Valor absolut

Funció derivada

Tangents

ff(x) = x^(2) - (2 * x)
CampEntradaSortida1 = Textfield(ff)
a = false
b = false
f = If(a, abs(ff(x)), ff)
text1: "g(x) = " + (LaTeX[f]) + ""
g'(x) = f'(x)
A = Point(xAxis)
B: (x(A), f(x(A)))
c = Segment(A, B)
d = Tangent(B, f)
P: (x(A), f'(x(A)))
e = Segment(A, P)
g = false
aa = Slope(d)
text3: "Pendent = " + aa + ""