Post Reply 
Issue with CAS solve command?
06-02-2014, 11:49 PM
Post: #1
Issue with CAS solve command?
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
Find all posts by this user
Quote this message in a reply
06-03-2014, 01:22 AM
Post: #2
RE: Issue with CAS solve command?
Any additional steps or anything? I am unable to see this one.

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
06-03-2014, 01:40 AM (This post was last modified: 06-03-2014 01:59 AM by Rich.)
Post: #3
RE: Issue with CAS solve command?
Hi,

Here is a small video of me typing it in, sorry for the shaky camera...

https://www.dropbox.com/s/rkh05yrx7r7djn....28.57.mp4

This is the virtual emulator crashing, same equation

https://www.dropbox.com/s/m81ixnqnkqfoagw/Test.mp4

Thanks
Find all posts by this user
Quote this message in a reply
06-03-2014, 02:28 AM
Post: #4
RE: Issue with CAS solve command?
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.

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
06-03-2014, 08:30 AM
Post: #5
RE: Issue with CAS solve command?
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.
Find all posts by this user
Quote this message in a reply
06-03-2014, 11:06 AM
Post: #6
RE: Issue with CAS solve command?
Thank you, placing a 10. instead of 10 in my equation prevents the crashes on both the emulator and the prime.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)