Maybe it's time to look for some other representation of algebraic numbers, instead of nested radicals? Unnested radicals work reasonably well, with near-canonical forms and tolerable computing efforts to manipulate -- I'm thinking +-*/, although / tends to make messes. And strict canonicalization fails because of a factoring problem: if your expression includes sqrt(499999), you won't know it's also 127sqrt(31) without a hint. But if your expression is sqrt(499999) + sqrt(52111), a gcd will provide the hint, without needing to do any factoring. The usefulness of nested radicals for calculating roots of polynomial equations is questionable: We have the cubic and quartic formulas, but using them to get good numerical results requires care: Knuth points out that even the quadratic formula can have numerical problems. Are we better off with a solid numerical routine? The other point of representations, besides numerics, is the benefit of canonical expressions, providing an at-sight equality check, and helping with simplification by allowing visibly equal terms to be combined, and occasionally cancelled. If you plug the quadratic formula back into the polynomial, you can simplify the result down to 0=0. But if you do the same thing with the cubic or quartic formulas, you need to know some special manipulations to get to 0=0. I don't have a good alternative to propose. My only candidate is things like "solve(x^3 = x+1, near 1.3)", which is about as hard to work with as the cubic formula, and offers no obvious scheme for canonicalization. But the present situation is not good. If you need to invoke Gosper or Ramanujan as part of routine simplification of expressions, you've already lost. Rich ---- Quoting Bill Gosper <billgosper@gmail.com>:
https://en.wikipedia.org/wiki/Tetracontagon <https://en.wikipedia.org/wiki/Tetracontagon#:~:text=In%20geometry%2C%20a%20tetracontagon%20or,interior%20angles%20is%206840%20degrees.> expresses cot(?/40) in radicals. Hilariously. They reexpress the triply nested radical Sqrt[1 + (1 + ?5 + Sqrt[5 + 2 ?5])^2] four different ways, all longer(!), and all triply nested. In fact, it denests to ??5 ?(1 + ?5) + (3 + ?5)/?2. ?rwg https://community.wolfram.com/groups/-/m/t/980264 _______________________________________________ math-fun mailing list math-fun@mailman.xmission.com https://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun