Issue with CAS solve command? - 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: Issue with CAS solve command? ( /thread-1523.html) |

Issue with CAS solve command? - Rich - 06-02-2014 11:49 PM
Hi, I am able to repeat this issue on the Virtual Prime Emulator and the physical calculator, both that are update to the latest revision in firmware. In CAS mode entering: '(10+k)^.5=11/2 * 2^.5' Then going to solve under the CAS menu and selecting the expression so that the line output looks like this: solve('(10+k)^.5=11/2 * 2^.5',k) The calculator and emulator reboots. I am able to repeat this. If i do not include the quotes, then I am able to get the correct answer. I do not have k stored as a variable. I typically leave all my expression and equations in quotes out of habit, in case i did create a variable in a previous session. Anyone have this problem or possible can see what i am doing wrong? Thanks RE: Issue with CAS solve command? - Tim Wessman - 06-03-2014 01:22 AM
Any additional steps or anything? I am unable to see this one. RE: Issue with CAS solve command? - Rich - 06-03-2014 01:40 AM
Hi, Here is a small video of me typing it in, sorry for the shaky camera... https://www.dropbox.com/s/rkh05yrx7r7djnj/2014-06-02%2021.28.57.mp4 This is the virtual emulator crashing, same equation https://www.dropbox.com/s/m81ixnqnkqfoagw/Test.mp4 Thanks RE: Issue with CAS solve command? - Tim Wessman - 06-03-2014 02:28 AM
Hmm, I see the videos (many thanks, you can delete them if you need the space or whatever as I have local copies) but following the exact steps I am unable to see it. It will be put on the list to investigate however. Thanks. RE: Issue with CAS solve command? - parisse - 06-03-2014 08:30 AM
There are two bugs here: the first one happens when you copy/paste, the EQW translates ^.5 to sqrt(), which makes the equation an exact equation. Then because of the quotes, sqrt() is not evaled to pow(,1/2) and not recognized as a fractional powers by the exact solver, and that raises at some point an assertion failure -> crash. I've fixed the exact solver not to crash, but it will return an empty list for the exact equation if quotes are present, because the CAS expects sqrt to be evaled to pow(,1/2). A workaround is either to remove quotes or enter an approx number elsewhere in your equation, for example for 10. or 5.5, so that the EQW does not convert your equation to something exact. RE: Issue with CAS solve command? - Rich - 06-03-2014 11:06 AM
Thank you, placing a 10. instead of 10 in my equation prevents the crashes on both the emulator and the prime. |