CAS: approx. sqrt? - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: CAS: approx. sqrt? (/thread-4647.html) |
CAS: approx. sqrt? - Helge Gabert - 09-05-2015 03:47 AM I happened to run across this some time ago sqrt(1+i) gets approximated right away in CAS, with the message: "Warning, converting to approx. sqrt." ? Why? But no automatic approximation with the 3-root or 4-root of 1+i. [attachment=2495] RE: CAS: approx. sqrt? - pwarmuth - 09-05-2015 04:17 AM Is your CAS configured to use complex numbers in the CAS settings? RE: CAS: approx. sqrt? - Helge Gabert - 09-05-2015 05:27 AM Return exact symbolic result is checked, of course - - Or do you mean include complex results in variable? That doesn't seem to matter. What do you get? RE: CAS: approx. sqrt? - parisse - 09-05-2015 06:48 AM I have recently disabled exact sqrt for complex numbers on the Prime when they lead to complicated expressions that would take too much time to simplify (especially when mixed with other expressions) and are difficult to interrupt (because C++ exceptions are disabled on the Prime). RE: CAS: approx. sqrt? - Helge Gabert - 09-05-2015 02:58 PM Thanks for the explanation, but what about the 3-root and 4-root expressions? They stay in exact form. Why not have sqrt(complex #) simply also rewritten as e^(1/2*ln(complex number)? Or just leave it as sqrt(Complex #)? Will that really lead to too complicated, exact expressions further on? If so, flashing the warning makes sense (as a suggestion), but the user can always hit the approx key anyway (at any time). I don't think that the CAS system should approximate by default - - the beauty of CAS is to enable exact computations. RE: CAS: approx. sqrt? - parisse - 09-05-2015 04:20 PM There are limitations on a calculator, as explained above, aborting a too complex computation is sometimes not possible on the Prime because I can not compile with C++ exceptions enabled here. RE: CAS: approx. sqrt? - Helge Gabert - 09-05-2015 06:28 PM OK, I understand. RE: CAS: approx. sqrt? - Helge Gabert - 09-07-2015 10:15 PM Not to beat a dead horse, but has this been reported before? CAS: (sqrt(x-1))^i and the Prime hangs. There definitely are some issues with square roots and complex numbers (Rev 8151). RE: CAS: approx. sqrt? - parisse - 09-08-2015 06:13 AM I can not reproduce. Have you non default settings? RE: CAS: approx. sqrt? - Helge Gabert - 09-08-2015 02:44 PM It happens if you don't add the parenthesis (sorry I typed that wrong in the above post) just sqrt(x-1)^i, and also if you hit simplify(). My settings are standard, except "use i" is checked, and simplify: "minimum." The emulator hangs as well. RE: CAS: approx. sqrt? - parisse - 09-09-2015 07:24 AM This has probably been fixed since last firmware release, as you can check with the latest version of Xcas. RE: CAS: approx. sqrt? - Helge Gabert - 09-09-2015 03:01 PM Yes, Xcas is OK, but this hasn't been fixed in the Prime firmware yet. |