                      Easy Triangle Solver 1.1
                          By Eric Rechlin
                          eric@hpcalc.org
                       http://www.hpcalc.org

This is a triangle solver library (#1592) for the HP48 S and G series 
written 100% in System RPL.  Usage is fairly straightforward, so I 
haven't written an extensive tutorial for it, but I'll give some basic 
information.

1. Install the program and run it (type ETS and press ENTER or use the 
   library menu)
2. Enter a triangle measurement, and press the corresponding key (side 
   or angle).  If you prefer, you can press STK-> to take a number 
   from level 1 on the stack and put it in the input line.
3. Once this has been done three times, it will give the full solution 
   of the triangle.  If three angles were given, it will give the 
   ratio of sides, since their measurements cannot be determined.  In 
   case you care, it works by ignoring the third angle value, putting 
   a 1 in as a third side, and uses AAS to solve.
4. Press MORE to see the heights and the area of the triangle.  Press 
   MORE when you are done to go back to the previous screen.
5. Press ->STK to put the currently displayed solutions on the stack, 
   and press QUIT when you have finished viewing the solution.

This program requires the angles and sides to be entered in order 
around the triangle, since different orders may produce different 
results.  Because of the two possible solutions with the SSA scenario, 
simply change the order of the input to get the other solution.

Since I have not yet reached the point in school to know how to solve 
triangles like these, I took some of the algorithms from QTS by 
Othniel Rawlins.  I did improve them, however, to use greater 
precision so answers like 89.9999999999 will not be given, as the 
rounding errors have been removed.  This program is, however, almost 
triple the size of QTS, but its improved interface, more accurate 
results, and additional solutions well make up for the size difference 
in my opinion.

I created this program as an "entry" to Joe Horn's contest for a 
triangle solver, but not right away.  A couple weeks after the contest 
was announced, I went on vacation, so I wrote this program entirely on 
the HP48, using Jazz 6.5 (by Mika Heiskanen) and Library Maker 5.1 (by 
Christian Bourgeois).  Unfortunately, ETS didn't completely qualify 
because in my program input order is important, and the rules stated 
that the input order couldn't affect the outcome. I am planning on 
revising this program to meet the rules, which require six input 
buttons rather than two.

This program is emailware.  That means if you like it, simply email me 
at eric@hpcalc.org.  That will encourage me to update it; if I don't 
hear any responses I won't work on version 1.2 or 2.0.

Although I have tested this with no problems on both a GX Revision R 
and an SX Revision D, and I only used supported entry points, there is 
always a chance of a Memory Clear error message.  I am not responsible 
for any problems you may have with this program, but if you find a 
bug, please email me to tell me about it.

This program is compressed with BZ, and UBZ is embedded in the library 
so it is entirely self-contained.  Thanks to Jack Levy (maker of BZM) 
and Mika Heiskanen (maker of BZ) who made this possible.

ETS11.LIB on stack:
Checksum # D79Bh #55225d
2257.5 bytes

Version History:
1.0 Initial public release
1.1 Now compressed with BZ (saves 1.1kb)
    Solves heights and area also
    AAA treated differently

Possible future versions:
1.2 May find the second solution of the dual-solution SSA problem
2.0 May have six input buttons instead of two

Eric Rechlin
June 22nd, 1998