HP35s Programming Experts
I am working on a Hz Curve solver for my HP35s, where it prompts for any number of values (Delta/Arc Length/Radius/Tangent length....)
What I would like it for the calculator to tally up how many values have been entered, and as soon as 2 values are reached, start the program to solve for the curve, rather than continue prompting for questions until it reaches the end. Is there a savvy way to sum up x=0? functions?
Jason Foose had a number of programs that were published in The American Surveyor a year or so ago. Go online and check their archives and you will probably find what you're looking for.
I wrote a little program in VC++6 for Windows that does all practical combinations of parameters for a horizontal curve, arc and chord definition. It lets you change anything and uses the last two changes to compute everything else. I'll send you the source if that would help guide you. My email is in my profile.
that is exactly what SMI does on the HP48GX
The way the HP35s works, you'd need one separate program for each two knowns.
Knowing R and D to get the program to spit everything else out would be one program.
Knowing R and L would be another
Knowing R and T would be another
You're basically creating many programs and would run out of room before you finished doing it that way.
You have to use existing routines to cheat. Angle Angle Side, Side Side Side, Angle Side Angle can be used to dissect a problem. The AZ add and AZ subtract are two others you'd need. The list goes on.
Then, you can plug into your curve solver with a Radius and Delta. This way, you also have the added benefit of having those routines that can be used for other stuff.