[WP 34s] Another noobie question about programming

06142015, 04:07 PM
(This post was last modified: 06142015 04:27 PM by Marcio.)
Post: #1




[WP 34s] Another noobie question about programming
Dear all, thank you for your patience in advance.
Please, let me ask you a couple more question about the 34s: I would like to integrate a function like \(f(x) = \frac{1}{x+a}\) where \(a\) is as large as 1000. Not knowing exactly how things worked in previous HP calcs, I naively typed 1500 for \(a\) directly into the program, well, you know what happened. The manual says that integers (say \(n\)) can be keyed in using the # symbol, however, it also states that \(0\leqslant n \leqslant 255\). Now comes the noobie question: Do I have to modify \(n\) by assigning, for example, 250 to it and multiply by 6 to get 1500? Or I am missing something here? Thank you Marcio EDIT: Alternatively, I could also assign a register to \(a\) before using it in the program, in case \(a\) is a prime number and greater than 255. 

06142015, 04:28 PM
Post: #2




RE: [WP 34s] Another noobie question about programming
I see various ways to accomplish this:
1. You can just type the number into your program: LBL 00 1 5 0 0 + 1/x RTN 2. If your number is a multiple of 10 use: LBL 00 # 150 SDL 1 + 1/x RTN 3. The most flexible approach uses register 00 to hold a: LBL 00 RCL+ 00 1/x RTN Marcus von Cube Wehrheim, Germany http://www.mvcsys.de http://wp34s.sf.net http://mvcsys.de/doc/basiccompare.html 

06142015, 04:40 PM
Post: #3




RE: [WP 34s] Another noobie question about programming
Yeap, storing \(a\) and calling it from the program is the way to go.
Thanks. 

« Next Oldest  Next Newest »

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