Help on silly program

01252021, 07:14 PM
Post: #1




Help on silly program
Hi all, I don't program in RPL a long time ago, I'm using RPN mostly, and I'm having troubles with this little program I want to write.
Given the formula attached on the files, what I want to calculate is the value of Va, Ha, Ma, Mb and Mc. Firstable, I wrote all the formulas with the equation writer and store them as global variables. Then, I created an inform input template where all the variables are gathered and stored in local variables. Lastly, after the inform template I wanted to paste the equations within '' so that they can be evaluated in ALG mode but I only can evaluate the first one, after that I always get a >NUM error. I think that the local variables are lost after the first ALG equation. How would you write a program to do this?. Thanks in advance. 

01292021, 10:43 PM
Post: #2




RE: Help on silly program
http://h20331.www2.hp.com/hpsub/download...i_49gp.pdf
Did you try something like this? I have very little experience with using the Solve application. If I had to solve an equation with many variables, I would create an INPUT form. You are calculating a bending moment? I'm not an engineer. Can you provide an example problem along with a solution? 

02022021, 09:55 PM
Post: #3




RE: Help on silly program
Quote:Then, I created an inform input template where all the variables are gathered and stored in local variables.That might be your problem. Local variables and global variables are different objects in RPL, so if your equations refer to global variables, which they almost certainly do, then they won't recognize the local variables that your inform might have created. Can you post your code? I'm sure we can figure it out if you do. 

02032021, 02:06 AM
Post: #4




RE: Help on silly program
This post has actually inspired me to learn something more about civil engineering. I decided a bending moment wasn't my thing, so I picked fluid flow. I studied a bit about it over the weekend, the Colebrook equation in particular. Are there any civil engineers on these forums?


02032021, 06:57 AM
Post: #5




RE: Help on silly program
Thank you for your replies. I'm using the solve aplication to deal with this and so far so good.


02032021, 01:38 PM
Post: #6




RE: Help on silly program
(02032021 02:06 AM)MNH Wrote: This post has actually inspired me to learn something more about civil engineering. I decided a bending moment wasn't my thing, so I picked fluid flow. I studied a bit about it over the weekend, the Colebrook equation in particular. Are there any civil engineers on these forums? There definitely are, but they may not be reading a thread called "Help on silly program". I suggest you create a thread with keywords relevant to your interest, such as "Civil Engineers with experience using the Colebrook equation?" Bob Prosperi 

02052021, 12:01 AM
Post: #7




RE: Help on silly program  
« Next Oldest  Next Newest »

User(s) browsing this thread: