I'm having difficulty understanding how to express text in Epilog
that is dynamically updated using Log[b, x]
. Mathematica changes this to base $e$, but I would like it to be Log[b, x]
in traditional format with base $b$, and I can't seem to make it work. I'm guessing I need to break the $\log$ apart using boxes or something, but don't know how to make a subscript that is a dynamically updated b
value. Any ideas?
Manipulate[
Plot[{b^x, x, Log[b, x]}, {x, -10, 10},
PlotRange -> {{-5, 5}, {-10, 10}}, PerformanceGoal -> "Quality",
ImageSize -> All,
Epilog -> {Text[b^x, {-3, 4}], Text[Log[b, x], {3, -5}]},
GridLines -> {Range[-10, 10, 1], Range[-10, 10, 1]},
GridLinesStyle -> Opacity[.04]], {{b, 2, "Choose a base"}, 0.01, 4}]
Comments
Post a Comment