f(alpha) exercise 3

Estimate the value of f(alpha) at each of the indicated points of this tau(q) graph.
This tau(q) curve has parameters r = 0.5, p1 = 0.05, p2 = 0.2, p3 = 0.3, and p4 = 0.05.
Use the formula
    alpha(q) = (log(p1)*p1q + ... + log(p4)*p4q)/ (log(r)*(p1q + ... + p4q)),
the formula
    tau(q) = -Log(p1q + p2q + p3q + p4q)/Log(r),
and the formula
    f(alpha) = q*alpha + tau(q)
to compute f(alpha) for the pictured points q = -1, q = 1, and q = 3.
Here are the solutions.

Return to f(alpha) exercises.