Post Reply 
How to easily crash an HP Prime
03-06-2018, 09:09 AM
Post: #1
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.
Find all posts by this user
Quote this message in a reply
03-07-2018, 02:04 PM
Post: #2
RE: How to easily crash an HP Prime
Hi!

Same for me... my calculator reboot.

Marcel
Find all posts by this user
Quote this message in a reply
03-07-2018, 03:11 PM
Post: #3
RE: How to easily crash an HP Prime
Funny enough that you tried to integrate a trigonometric function in degrees.
Arno
Find all posts by this user
Quote this message in a reply
03-07-2018, 05:34 PM
Post: #4
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
Find all posts by this user
Quote this message in a reply
03-07-2018, 07:23 PM
Post: #5
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.
Find all posts by this user
Quote this message in a reply
03-08-2018, 04:48 AM (This post was last modified: 03-08-2018 04:57 AM by Carsen.)
Post: #6
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?
Find all posts by this user
Quote this message in a reply
03-08-2018, 05:04 AM
Post: #7
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-
Visit this user's website Find all posts by this user
Quote this message in a reply
03-08-2018, 06:37 AM
Post: #8
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)
Find all posts by this user
Quote this message in a reply
03-08-2018, 06:45 AM
Post: #9
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.
Find all posts by this user
Quote this message in a reply
03-08-2018, 02:41 PM
Post: #10
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
15C CE, 28s, 35s, 49G+, 50G, Prime G2 HW D, SwissMicros DM32, DM42, DM42n, WP43 Pilot
Elektronika MK-52 & MK-61
Find all posts by this user
Quote this message in a reply
03-08-2018, 03:04 PM (This post was last modified: 03-08-2018 03:06 PM by jebem.)
Post: #11
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 Smile

Jose Mesquita
RadioMuseum.org member

Find all posts by this user
Quote this message in a reply
03-08-2018, 03:20 PM
Post: #12
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 Smile

SM DM42 Smile
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
15C CE, 28s, 35s, 49G+, 50G, Prime G2 HW D, SwissMicros DM32, DM42, DM42n, WP43 Pilot
Elektronika MK-52 & MK-61
Find all posts by this user
Quote this message in a reply
03-08-2018, 08:25 PM
Post: #13
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.
Find all posts by this user
Quote this message in a reply
03-08-2018, 08:47 PM (This post was last modified: 03-08-2018 08:54 PM by Joe Horn.)
Post: #14
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.

[Image: int10.png]

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
03-08-2018, 09:09 PM
Post: #15
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.

[Image: int10.png]

That''s what I missed, Joe. Thanks.
Find all posts by this user
Quote this message in a reply
Post Reply 




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