home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / math / sectcalc / sectcalc.doc next >
Encoding:
Text File  |  1985-11-20  |  3.0 KB  |  74 lines

  1.                             Sectorcalc
  2.  
  3. Quite often calculations involving a sector of a circle  become necessary.  Unfortunately, only two of the six dimensions are generally available.  SectorCalc will determine the remaining four dimensions.
  4.  
  5.  
  6. DESCRIPTION:
  7.  
  8. The program functions as follows:
  9.  
  10. It's written in Hisoft Basic and is distributed by Michtron.
  11.  
  12. Make sure that sector.dmp and sector.prg are in subdirectory "sectcalc".
  13.  
  14. The only choice you have is to enter the included angle dimension in degrees.  If there is sufficient interest I can put in a menu choice for radians at a later date.
  15.  
  16. After loading, a diagram of a sector of a circle will appear on the screen.  Each possible dimension is identified with a letter and a short description above a box.  Moving the mouse cursor over the box and clicking with the left button allows for numerical input.
  17.  
  18. Enter the number and finish your input by  pressing the RETURN key.
  19.  
  20. Enter at least one other dimension and the program will finish the calculations for you.
  21.  
  22. Pressing the "R" key will redraw the screen and set all dimensions to zero so you may enter new values.
  23.  
  24. A right mouse click exits from the program.
  25.  
  26.  
  27. KEY ASSIGNMENTS, ETC.:
  28.  
  29. Mouse:
  30.  
  31.     left click  - choose dimension to change
  32.     right click - exit from the program
  33.  
  34. Keyboard:
  35.  
  36.     "R" - redraw the screen and reset everything to zero
  37.     "I" - a short banner with my name putting the program
  38.           into the Public Domain
  39.  
  40. Sample Dimensions:
  41.  
  42.     I checked the math over the best I can but if you find any errors I'd appreciate knowing about it.  Any, some sample dimensions are as follows if the included angle=30 degrees and R is set to 10:
  43.  
  44. h = .341
  45. d = 9.659
  46. c = 5.176
  47. s = 5.236
  48.  
  49.  
  50. CAVEATS:
  51.  
  52. Since the radius (R) is the result of several calculations it should be the last number you enter (i.e. most times it will be the second of the two numbers you enter).  Putting it in first will probably drop you back to the Desktop.  Sorry, but I'll have to "fix" it at a later date.
  53.  
  54.  
  55. After you enter (or the program calculates) a value for the included angle (theta) and get the radius (R), you may interactively change the value for theta and get "real-time" determinations for the remaining values.
  56.  
  57. I haven't implemented the code yet for the cases when only arc length and chord length, arc length and center to chord, or arc length and segment height are available.  It takes some recursive programming.  Again, if there's interest I'll "fix" it later.
  58.  
  59.  
  60. I've done my best to make the program as accurate and easy to use as possible.  If however, you find any "bugs"  and would like to suggest some enhancements I'd appreciate hearing them.
  61.  
  62. As usual, this is offered to the Public Domain and I have to make the usual disclaimer:  no warranties are either written or implied as to the accuracy of this program.  Nor am I liable for it's use (or misuse!!).
  63.  
  64. Enjoy!
  65.  
  66. Steve Mcginnis
  67.  
  68. March 28, 1992
  69.  
  70. GEnie address:  S.MCGINNIS
  71.  
  72.  
  73.  
  74.