(11C) Tree Heights
|
11-03-2018, 12:47 PM
(This post was last modified: 11-03-2018 02:13 PM by Dieter.)
Post: #7
|
|||
|
|||
RE: (11C) Tree Heights
(11-03-2018 01:35 AM)Gamo Wrote: Dieter thanks for the better program update. See below. ;-) (11-03-2018 01:35 AM)Gamo Wrote: Personally I program this Tree Height as simple to operate as possible Does it get simpler than entering the three values on the stack? (11-03-2018 01:35 AM)Gamo Wrote: so I put all input operation separately on each labels like so Again: there is no need for separate calculations for positive or negative slope values. Try it: simply enter –20 at [B]. You may also use two separate labels for the distance and the slope percent to the tip. Finally here is another version: In many cases it is a good idea not to follow a given path but to try a new approach instead. This is also the case here. The tree height can also be calculated this way: b = a·cos(B2) · tan(B1) – a·sin(B2) The point here is that the sine and cosine term can be simultaneously calculated by means of the P–>R command. And the tangent simply is the tip slope divided by 100. This leads to the following even shorter program: Code: 01 LBL A And here is a version that uses the label keys: Code: 01 LBL A f[USER] Enter base distance [A] Enter base slope percent [B] (may be positive or negative) Enter tip slope percent [C] Calculate tree height with [D] 56 [A] => 56,00 20 [B] => 20,00 40 [C] => 40,00 [D] => 10,98 -20 [B] => -20,00 [D] => 32,95 Addendum: I was playing around a bit with a TI59 emulator, so here also is a version for the TI58/59. Code: 000 76 LBL Usage is the same as above. The final steps round the result to two decimals. Dieter |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(11C) Tree Heights - Gamo - 11-02-2018, 01:24 PM
RE: (11C) Tree Heights - SlideRule - 11-02-2018, 02:43 PM
RE: (11C) Tree Heights - Dieter - 11-02-2018, 06:15 PM
RE: (11C) Tree Heights - SlideRule - 11-02-2018, 07:03 PM
RE: (11C) Tree Heights - Dieter - 11-02-2018, 07:41 PM
RE: (11C) Tree Heights - Gamo - 11-03-2018, 01:35 AM
RE: (11C) Tree Heights - Dieter - 11-03-2018 12:47 PM
RE: (11C) Tree Heights - Thomas Klemm - 11-04-2018, 03:32 PM
RE: (11C) Tree Heights - Dieter - 11-04-2018, 04:57 PM
RE: (11C) Tree Heights - ijabbott - 11-22-2018, 05:27 PM
RE: (11C) Tree Heights - Gamo - 11-05-2018, 12:52 AM
|
User(s) browsing this thread: 1 Guest(s)