HP-35s SOLVE with integration
|
04-22-2024, 05:46 PM
Post: #1
|
|||
|
|||
HP-35s SOLVE with integration
I want to find the first null in Bessel function J0(x) using an HP-35s. The code below finds Jn(x). But trying to SOLVE it for J0(x) = 0 (at x = 2.4048) results in a "SOLVE ACTIVE" error at the "FN= I" instruction. I finally found in the manual under "Restrictions on Solving and Integrating" that "SOLVE and <integral>FN cannot call a routine that contains an FN=label instruction." This surprised me because older calculators such as the HP-15C can SOLVE an expression involving an integral. Is there any way to SOLVE J0(x) = 0 (at x = 2.4048) using an HP-35s?
Code: LBL J Jn(x) = (integral 0 to pi of LBL I)/pi |
|||
04-22-2024, 10:48 PM
(This post was last modified: 04-22-2024 10:50 PM by Thomas Klemm.)
Post: #2
|
|||
|
|||
RE: HP-35s SOLVE with integration | |||
04-23-2024, 12:06 AM
Post: #3
|
|||
|
|||
RE: HP-35s SOLVE with integration
(04-22-2024 05:46 PM)Rick314 Wrote: ... True but the HP 35s is more comparable with the calculator line that it evolved from, namely: HP-32S --> HP-32SII --> HP-33S --> HP 35s. The HP-32S was more of a replacement for the HP-11C with a few of the features of the HP-15C (a solver, numeric integration and some complex math) plus alpha display of program steps (instead of key codes) and base conversions. In that respect, I think it was a good evolution of that line. |
|||
04-23-2024, 12:44 AM
(This post was last modified: 04-23-2024 05:31 AM by Thomas Klemm.)
Post: #4
|
|||
|
|||
RE: HP-35s SOLVE with integration
(04-22-2024 05:46 PM)Rick314 Wrote: Is there any way to SOLVE J0(x) = 0 (at x = 2.4048) using an HP-35s? Here's a program for the HP-15C that uses regula falsi instead of the built-in solver: Code: 001 { 42 21 11 } f LBL A Formula \( \begin{align} x = \frac{b \cdot f(a) - a \cdot f(b)}{f(a) - f(b)} \end{align} \) Registers 0: n 1: x 2: a 3: b 4: f(a) 5: f(b) Example FIX 7 RAD 0 STO 0 2 ENTER 3 GSB A 2.4048256 But I'm sure that you are able to rewrite it for the HP-35S. |
|||
04-25-2024, 06:41 PM
Post: #5
|
|||
|
|||
RE: HP-35s SOLVE with integration
I have a program on my HP-35s to solve the problem in the original post. Thank you to those that replied, especially Thomas Klemm -- I recognized your HP-15C program as being compatible with the JRPN 15C simulator, ran it, and enjoyed commenting it (below) to understand it. Notably:
Code: # Thomas Klemm, https://www.hpmuseum.org/forum/thread-21638.html |
|||
04-26-2024, 05:19 PM
Post: #6
|
|||
|
|||
RE: HP-35s SOLVE with integration
(04-25-2024 06:41 PM)Rick314 Wrote: enjoyed commenting it (below) to understand it. I'm pleased that you now have a working program for your HP-35s. And thank you for your excellent comments, which make it much easier to understand. I often do this myself, but in this case it worked to your advantage that I was lazy. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)