I have several doubts about notation. I would appreciate any clarifications.
a) I can express, for example, a periodic or semi-periodic number without writing it in its rational form. Can such notation be recognized by Mathematica?
Examples:
$$a= 0. \bar{8}, b= 1.34\bar{5}$$
b) If I do the a/b operation with the numbers above, how do I force Mathematica to write the result in a non-decimal rational form?
c) How do I solve the following equations involving nested radicals?
$$\sqrt{x+\sqrt{x+\sqrt{x+...}}}=12$$ $$\sqrt{x+\sqrt{x-\sqrt{x+\sqrt{x-...}}}}=15$$
edit It seems that I did not express myself very well. If I have any rational decimal as a result, how can I get MMA to express it to me in the form a/b? Apologies for putting more than one question, I thought they were part of the same
FromDigits[{{0, {8}}, 1}]
and for $b$FromDigits[{{1, 3, 4, {5}}, 1}]
. You can look up the docs for the input syntax ofFromDigits
/RealDigits
. $\endgroup$Solve[{y == Sqrt[x + y], y == 12}, {y, x}]
andSolve[{y == Sqrt[x + Sqrt[x - y]], y == 15}, {y, x}]
can be used to solve forx
. $\endgroup$