I am trying to put in a legend a value calculated previously but as you can see by your self the output is so stranger.
f[x_] := ((3/20)^(471/100)*20/29*(x - 80))^(50/
91) + ((3/20)^(471/100)*20/29*(x - 60))^(50/91) - 1/25
x0 = Extract[{x} /. FindRoot[f[x] == 0, {x, 80}], 1];
P0 = Point[{x0, 0}];
Gf = Plot[f[x], {x, 80, 100}, PlotStyle -> Red, AspectRatio -> 1,
AxesLabel -> {"x", "y"},
PlotLegends -> {LineLegend[{Red}, {"f(x)"}],
PointLegend[{Black}, {"P0=(" x0 ",0)"}]}];
Show[Gf, Graphics[{PointSize[0.015], P0}]]
So could someone help me to put in the legend P0=(x0,0)
with x0
=numerical solution?
Subscript[G, f] = Plot[f[x], {x, 80, 100}, PlotStyle -> Red, AspectRatio -> 1, AxesLabel -> {"x", "y"}, PlotLegends -> {LineLegend[{Red}, {"f(x)"}], PointLegend[{Black}, {"\!\(\*SubscriptBox[\(P\), \(0\)]\)=(" <> ToString@Subscript[x, 0] <> ",0)"}]}];
$\endgroup$NumberForm
. (corrected spellings of the command and deleted the comment with the mistake).ToString@NumberForm[ x0 , {6, 3}]
$\endgroup$