HP Forums
wrong result using 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: wrong result using simplify() (/thread-18490.html)



wrong result using simplify() - Adiwa - 06-20-2022 02:25 PM

Hello forum

I'm playing around with my new HP Prime G2.
Trying to duplicate the inputs of a you tube video I entered in CAS: simplify(x+x+2y+x-y-x)

I got as result x+x+2.*y-y-x (with this strange decimal behind the 2), there's no simplification!
The guy in the video gets perfectly 2*x+y as expected.

What I'm doing wrong, whats going on?

In addition I did several complex things on it as areas between graphs and everything seems to be working fine there.

Any ideas out there - thanks very much.
Adrian


RE: wrong result using simplify() - Guenter Schink - 06-20-2022 09:40 PM

Seems to be a matter of the settings for CAS. Go to <Settings> (for CAS of course) and choose <Minimum> as the option for 'Simplify' that should do it. BTW best is to avoid any implicit operations like '2y' instead of '2*y'

HTH Günter


RE: wrong result using simplify() - Joe Horn - 06-20-2022 09:49 PM

The decimal point MIGHT indicate that your CAS is set to Approx mode. Press Shift CAS [Settings], then make sure the Exact box has a checkmark.


RE: wrong result using simplify() - Adiwa - 06-21-2022 02:44 PM

(06-20-2022 09:40 PM)Guenter Schink Wrote:  Seems to be a matter of the settings for CAS. Go to <Settings> (for CAS of course) and choose <Minimum> as the option for 'Simplify' that should do it. BTW best is to avoid any implicit operations like '2y' instead of '2*y'

HTH Günter

Dear Guenter

Thanks for your hint, but I had it already on minimum. But Joes hint with the tickbox of "genau" solved my problem.

Regards
Adrian


RE: wrong result using simplify() - Adiwa - 06-21-2022 02:45 PM

(06-20-2022 09:49 PM)Joe Horn Wrote:  The decimal point MIGHT indicate that your CAS is set to Approx mode. Press Shift CAS [Settings], then make sure the Exact box has a checkmark.

Thanks this was the problem!
Regards