Post Reply 
Structural engineering programs
Yesterday, 05:59 PM
Post: #3
RE: Structural engineering programs
(10-30-2024 08:31 PM)Johnh Wrote:  I'd like to test the water to ask if anyone here is interested in programs for structural engineering?

Where else would you want to publish such programs?
Don't ask yourself if there is interest here.
Write about something that interests you.

Just a few thoughts:
  • Make it easy for the reader: with any obstacle, you may lose them.
  • Write an introduction describing the topic as a teaser.
  • Use LaTeX for mathematical formulas.
  • Publish programs as text in code blocks: we can view a printable version if we want to read or copy it.
  • Feel free to insert or attach additional representations (images, raw data, ...).
  • Provide examples: they help us understand and verify the program.
  • Make sure that input and output are clearly distinguished.
  • Add references if available.
  • Learn from HP's manuals for inspiration.
To run programs, I often use simulators or emulators.
Some of them allow easy import or export.
If a program is short, I type it too.
But hundreds of lines, probably not.

My presentations are dull compared to what others do.
Also, I'm not as organized as others.
But a plain text file like uprop.hp42s can be copied and pasted directly into Free42 in programming mode.

That's why I use this format for HP-42S programs.
And then for the voyagers, the format used by Torsten Manz's excellent HP-15C simulator.
This format is also used in JRPN.

Here's a simple example as a template:


Area of a Circle

The formula for the area of a circle is:

\(
A=\pi r^2
\)

This is a program for the HP-42S:
Code:
00 { 11-Byte Prgm }
01▸LBL "AREA"
02 X↑2
03 PI
04 ×
05 END

Example

14
XEQ "AREA"

615.7522

This is a similar program for the HP-15C:
Code:
   001 { 42 21 11 } f LBL A
   002 {    43 11 } g x^2
   003 {    43 26 } g PI
   004 {       20 } *
   005 {    43 32 } g RTN

Example

.55
GSB A

0.9503

References
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Structural engineering programs - Johnh - 10-30-2024, 08:31 PM
RE: Structural engineering programs - Thomas Klemm - Yesterday 05:59 PM



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