# Label with a formal part and a computed part

If would like to print $$\left(\frac{b}{a}\right)^2$$= (b/a)^2 inside a plot or a graphics where a and b have been seted to certain values so the first part is analytic and the second part (after the =) is computed

• something like Graphics[Text[Row[{HoldForm[(a/b)^2], "=", (a/b)^2}]]]? – kglr Jun 7 at 16:26

You can use HoldForm to prevent the "formal part" of the label from being evaluated:
a = 2; b = 3;

You can replace HoldForm with Defer to get the same result.