Post Reply 
Why does my HP48G program give this error??
10-27-2023, 11:28 PM (This post was last modified: 10-28-2023 03:08 PM by DM48.)
Post: #1
Why does my HP48G program give this error??
Why does my program give me a \.S Error: Bad Argument Type ??

I have written a lot of these integration routines very similar to this on my HP48 but this one is not cooperating. It works when I put in numbers in place of variables. However, when I had the variables back in the program ceases to function.

I typed the below in by hand so I may have a few errors. I have attached a screenshot of the formula part as a reference.

Code:


\<< 48 58 12 6 \-> ID OD H OC

\<< ' \.S (0,H/2, \.S (-OC, \v/ (H/2-y^2) - OC, \v/((OD/2)^2 - x^2) - \v/((ID/2)^2-x^2),x),y)' \->NUM >>\ \>>



\( \large \int_{0}^{\frac{H}{2}}\int_{OC}^{\sqrt{\left ( \frac{H}{2} \right )^2-y^2}\: \: +OC}\sqrt{\left ( \frac {OD}{2} \right )^2- x^2} \: \: - \: \: \sqrt{\left ( \frac {ID}{2} \right )^2- x^2} \)


Attached File(s) Thumbnail(s)
   

HP48GX, HP42s and DM42.
Find all posts by this user
Quote this message in a reply
10-28-2023, 11:48 AM
Post: #2
RE: Why does my HP48G program give this error??
With only numbers it will not work. I feel like I am in the twilight zone. I have tried RAD and DEG.


Attached File(s) Thumbnail(s)
       

HP48GX, HP42s and DM42.
Find all posts by this user
Quote this message in a reply
10-28-2023, 04:42 PM
Post: #3
RE: Why does my HP48G program give this error??
In one place you have \(\sqrt{H/2-y^2}\); I guess the \(H/2\) should be squared.

Nigel (UK)
Find all posts by this user
Quote this message in a reply
10-28-2023, 04:54 PM
Post: #4
RE: Why does my HP48G program give this error??
(10-28-2023 04:42 PM)Nigel (UK) Wrote:  In one place you have \(\sqrt{H/2-y^2}\); I guess the \(H/2\) should be squared.

Nigel (UK)

Nigel, I want to thank you from the bottom of my heart. I have typed this equation in no less than fifty times between yesterday and today and every time I must have left that out. I have checked, rechecked, and checked again. Deleted, swapped phones, used a real 48G, etc.

It is now working. Thank you!

HP48GX, HP42s and DM42.
Find all posts by this user
Quote this message in a reply
Post Reply 




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