CAS : strange error on simplify - 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 : strange error on simplify (/thread-4698.html) |
CAS : strange error on simplify - primer - 09-10-2015 10:28 PM Hello, in CAS setting, please select "USE i", "complex" and "Maximum simplification" now type the following (-sq(2+sq(2))+i*sq(2-sq(2)))^2 ok, now press ENTER and I got this message :"Warning! Algebraic extension not implemented yet for poly [-1,0,8,-8,2] " displayed 4 times on the screen. very strange for a so simple expression Please note we don't have message if we choose "minimun" as "simplify in CAS setting ! Best Regards. RE: CAS : strange error on simplify - Helge Gabert - 09-11-2015 01:45 AM I wouldn't call that an error- - it is just a warning message - - although times 4, which doesn't appear to be necessary. Assuming that by sq() you mean square root [sqrt()], if you expand() your expression first, and then simplify(), you will not receive those 4 warning messages, regardless whether you have the CAS settings on Maximum or Minimum simplification. RE: CAS : strange error on simplify - Brad Barton - 09-13-2015 05:31 PM I find that if I turn of Maximum Simplification, that I don't get the error message. Using Minimum Simplification, and pressing Enter, I get the correct answer by pressing the Simplify soft key a couple of times. It looks like the Prime is able to handle the expression, but Maximum Simplification might be causing the trouble. RE: CAS : strange error on simplify - primer - 09-13-2015 08:48 PM (09-11-2015 01:45 AM)Helge Gabert Wrote: I wouldn't call that an error- - it is just a warning message (...) Well, don’t call it an error if you want, but I think it’s still a real issue :
And yes, as I wrote, changing the Symplify mode does change the behavior, as Brad Barton experienced it too (thank you, I'm not alone ). I took screenshots (virtual hp prime) : -> here with minimal simplyfication, no warning, wrong result. -> here with maximal simplyfication, weird warning, same wrong result. -> here the manual and detailled simplyfication I made on paper with expected result (sorry for bad scan quality) So, I think that both warning msg and result are issues. My wish is only to try to tackle bugs to make it better. If people think it can be enhanced/fixed that's would be great. Best Regards, RE: CAS : strange error on simplify - roadrunner - 09-14-2015 12:32 AM I typed your equation into the emulator: (−√(2+√(2))+i*√(2-(√(2))))^2 and hit enter. The result is on the second level of the stack in the attachment below. Then I hit simplify. That result is incorrectly displayed on the first level of the stack in the attachment. Then I clicked on the answer on the first level and hit enter to copy the answer into the command line. The correct answer appeared! [attachment=2531] It appears the answer in memory is correct, but it is displayed incorrectly on the stack. road RE: CAS : strange error on simplify - roadrunner - 09-14-2015 12:46 AM To elaborate: The displayed answer, 2-2*i*sqrt(2) should be (2-2*i)*sqrt(2) it is missing a pair of parentheses but it is correct when copied into the command line. road RE: CAS : strange error on simplify - Helge Gabert - 09-14-2015 01:56 AM [attachment=2532] I agree. I did the check (simplified expression - original expression = 0?) without noticing that the copied result has an extra pair of parens. Good catch! RE: CAS : strange error on simplify - Bill_G - 09-14-2015 01:50 PM This error on the stack displaying an incorrect expression should be fixed. It could occur in other manipulations involving complex numbers. Hope the HP people check into this matter. Bill RE: CAS : strange error on simplify - Tim Wessman - 09-14-2015 04:17 PM I've filed it. Thanks. It is related to the 2d display for sure. RE: CAS : strange error on simplify - Helge Gabert - 09-17-2015 02:44 PM For the record, here is another instance where this happens (incorrect copy into the command line, this time with eigenvals): [attachment=2544] eigenvals() saves the eigenvalues into a vector, but the vector's brackets disappear when copying the result into the command line. This means that further calculations, e.g., referencing individual eigenvalues, like . . . (1) or . . . (2) won't work as intended (except if the user inserts the brackets manually). BTW, EIGENVAL() does not exhibit this peculiarity. RE: CAS : strange error on simplify - parisse - 09-17-2015 06:07 PM More precisely, sequences are not displayed correctly in textbook mode. |