How to easily crash an HP Prime
03-06-2018, 09:09 AM
Post: #1
 Ummon Junior Member Posts: 1 Joined: Mar 2018
How to easily crash an HP Prime
I'm using the latest version : 2018.02.12 1.4.1.13441

1. Put the calculator in degree mode
2. In numeric mode evaluate an integral from 0 to 10 of sin(X^2)dX
3. The calculator reboot nearly instantaneous

It also crashes with the virtual calculator on Windows.
03-07-2018, 02:04 PM
Post: #2
 Marcel Member Posts: 182 Joined: Mar 2014
RE: How to easily crash an HP Prime
Hi!

Same for me... my calculator reboot.

Marcel
03-07-2018, 03:11 PM
Post: #3
 Arno K Senior Member Posts: 470 Joined: Mar 2015
RE: How to easily crash an HP Prime
Funny enough that you tried to integrate a trigonometric function in degrees.
Arno
03-07-2018, 05:34 PM
Post: #4
 Marcel Member Posts: 182 Joined: Mar 2014
RE: How to easily crash an HP Prime
Hi,
Here, the angular mode is not the problem..
The prime don't have to reboot on this simple calculation.
Marcel
03-07-2018, 07:23 PM
Post: #5
 John Colvin Member Posts: 173 Joined: Dec 2013
RE: How to easily crash an HP Prime
Mine crashes also. Interestingly, the same integral dosen't crash my 49G+ in degree
mode, but it does give an incorrect answer - 4.66682...
But the fact remains that the Prime should not crash simply because the degree
mode is used instead of radian mode. Definitely a bug.
03-08-2018, 04:48 AM (This post was last modified: 03-08-2018 04:57 AM by Carsen.)
Post: #6
 Carsen Member Posts: 206 Joined: Jan 2017
RE: How to easily crash an HP Prime
John Colvin. My HP 50g got the right answer of 4.66829167156. I believe the 49G+ should get the right answer as well. Did you accidentally put in the lower and upper bound in the wrong order?
03-08-2018, 05:04 AM
Post: #7
 Joe Horn Senior Member Posts: 2,005 Joined: Dec 2013
RE: How to easily crash an HP Prime
(03-08-2018 04:48 AM)Carsen Wrote:  My HP 50g got the right answer of 4.66829167156.

Your answer is what the 50g gets in FIX 4 mode, leaving a pretty big value stored in IERR. STD mode takes a few seconds longer but returns 4.66829104623 with a much smaller IERR.

<0|ɸ|0>
-Joe-
03-08-2018, 06:37 AM
Post: #8
 parisse Senior Member Posts: 1,322 Joined: Dec 2013
RE: How to easily crash an HP Prime
This bug is already fixed in source code. Until it is available in a new firmware, you can run int(sin(x^2),x,0,10.0)
03-08-2018, 06:45 AM
Post: #9
 Carsen Member Posts: 206 Joined: Jan 2017
RE: How to easily crash an HP Prime
(03-08-2018 05:04 AM)Joe Horn Wrote:
(03-08-2018 04:48 AM)Carsen Wrote:  My HP 50g got the right answer of 4.66829167156.

Your answer is what the 50g gets in FIX 4 mode, leaving a pretty big value stored in IERR. STD mode takes a few seconds longer but returns 4.66829104623 with a much smaller IERR.

Huh. That's neat. I did not know about Integration Error (IERR) variable. I also didn't know (or forgot) that the number format changes the precision of the answer. Like the 15C. Learn something new everyday. Thanks Joe Horn.
03-08-2018, 02:41 PM
Post: #10
 DA74254 Member Posts: 191 Joined: Sep 2017
RE: How to easily crash an HP Prime
I tried in on my SM42. It went into an indefinite loop. Even with accuracy of 0.1

Esben
28s, 35s, 49G+, 50G, Prime G2 HW D, SwissMicros DM42, DM32, WP43 Pilot
Elektronika MK-52 & MK-61
03-08-2018, 03:04 PM (This post was last modified: 03-08-2018 03:06 PM by jebem.)
Post: #11
 jebem Senior Member Posts: 1,355 Joined: Feb 2014
RE: How to easily crash an HP Prime
(03-08-2018 02:41 PM)DA74254 Wrote:  I tried in on my SM42. It went into an indefinite loop. Even with accuracy of 0.1

"SM42" or "DM42"?

Anyway, it is always better to experience a machine reset than an infinite loop, so in this regard the HP Prime wins hands down

Jose Mesquita
RadioMuseum.org member

03-08-2018, 03:20 PM
Post: #12
 DA74254 Member Posts: 191 Joined: Sep 2017
RE: How to easily crash an HP Prime
(03-08-2018 03:04 PM)jebem Wrote:
(03-08-2018 02:41 PM)DA74254 Wrote:  I tried in on my SM42. It went into an indefinite loop. Even with accuracy of 0.1

"SM42" or "DM42"?

Anyway, it is always better to experience a machine reset than an infinite loop, so in this regard the HP Prime wins hands down

SM DM42
Anyway, I was a bit quick as I set up sin (x^3) which went on and on. With the correct integration it spent abt 4 sec. to get 0.5836... in RAD and almost instantly 4.6682... in DEG mode. (And 4.3825... in GRAD mode)

Esben
28s, 35s, 49G+, 50G, Prime G2 HW D, SwissMicros DM42, DM32, WP43 Pilot
Elektronika MK-52 & MK-61
03-08-2018, 08:25 PM
Post: #13
 John Colvin Member Posts: 173 Joined: Dec 2013
RE: How to easily crash an HP Prime
(03-08-2018 04:48 AM)Carsen Wrote:  John Colvin. My HP 50g got the right answer of 4.66829167156. I believe the 49G+ should get the right answer as well. Did you accidentally put in the lower and upper bound in the wrong order?

Am I missing something here? How is 4.6668.... the correct answer? If I convert
10 deg. to pi/18 red. in the upper boundary, I get a result of 0.001772.... on my
50G as well. A graph of sin(x^2) clearly indicates that in this interval, the area
under the curve is quite small.
03-08-2018, 08:47 PM (This post was last modified: 03-08-2018 08:54 PM by Joe Horn.)
Post: #14
 Joe Horn Senior Member Posts: 2,005 Joined: Dec 2013
RE: How to easily crash an HP Prime
(03-08-2018 08:25 PM)John Colvin Wrote:
(03-08-2018 04:48 AM)Carsen Wrote:  John Colvin. My HP 50g got the right answer of 4.66829167156. I believe the 49G+ should get the right answer as well. Did you accidentally put in the lower and upper bound in the wrong order?

Am I missing something here? How is 4.6668.... the correct answer? If I convert
10 deg. to pi/18 red. in the upper boundary, I get a result of 0.001772.... on my
50G as well. A graph of sin(x^2) clearly indicates that in this interval, the area
under the curve is quite small.

Yes, 10_deg = pi/18_rad, but sin((10_deg)^2) is not the same as sin((pi/18_rad)^2). Plot the sin(x^2) from 0_deg to 10_deg and you'll see it. The integral from 9 to 10 alone is almost 1.

<0|ɸ|0>
-Joe-
03-08-2018, 09:09 PM
Post: #15
 John Colvin Member Posts: 173 Joined: Dec 2013
RE: How to easily crash an HP Prime
(03-08-2018 08:47 PM)Joe Horn Wrote:
(03-08-2018 08:25 PM)John Colvin Wrote:  Am I missing something here? How is 4.6668.... the correct answer? If I convert
10 deg. to pi/18 red. in the upper boundary, I get a result of 0.001772.... on my
50G as well. A graph of sin(x^2) clearly indicates that in this interval, the area
under the curve is quite small.

Yes, 10_deg = pi/18_rad, but sin((10_deg)^2) is not the same as sin((pi/18_rad)^2). Plot the sin(x^2) from 0_deg to 10_deg and you'll see it. The integral from 9 to 10 alone is almost 1.

That''s what I missed, Joe. Thanks.
 « Next Oldest | Next Newest »

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