home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / misc / math / mathgrap.sit / MathGrapher / card_8434.txt < prev    next >
Encoding:
Text File  |  1989-07-28  |  3.5 KB  |  99 lines

  1. -- card: 8434 from stack: in
  2. -- bmap block id: 15708
  3. -- flags: 2000
  4. -- background id: 5839
  5. -- name: Hyperbolic
  6. ----- HyperTalk script -----
  7. on idle
  8.   hide btn id 2
  9.   pass idle
  10. end idle
  11.  
  12.  
  13.  
  14. -- part 1 (button)
  15. -- low flags: 00
  16. -- high flags: A003
  17. -- rect: left=411 top=51 right=108 bottom=494
  18. -- title width / last selected line: 0
  19. -- icon id / first selected line: 9986 / 9986
  20. -- text alignment: 1
  21. -- font id: 0
  22. -- text size: 12
  23. -- style flags: 0
  24. -- line height: 16
  25. -- part name: Function Editor
  26. ----- HyperTalk script -----
  27. on mouseDown
  28.   -- This is the Pop Up Menu XFCN
  29.   get popupmenu ("A sinh[Bx]              ,A cosh[Bx],A tanh[Bx],A csch[Bx],A sech[Bx],A ctnh[Bx],(-,arcsinh[Bx],arccosh[Bx],arctanh[Bx],arccsch[Bx],arcsech[Bx],arcctnh[Bx]",0,the mouseH, the mouseV )
  30.   put "sinh,cosh,tanh,csch,sech,ctnh,-,asinh,acosh,atanh,acsch,asech,actnh," into func
  31.   if it is empty then exit to HyperCard
  32.   put it into choice
  33.   put "A " & item choice of func & "[Bx]" into You
  34.   set the name of cd btn id 2 to You
  35.   show btn id 2
  36.   ask "What is the constantΓǪA?" with 1
  37.   if it is empty then exit to HyperCard
  38.   put it into A
  39.   ask "What is the constantΓǪB?" with 1
  40.   if it is empty then exit to HyperCard
  41.   put it into B
  42.   put "A " & item 2 of func & "[Bx]" into You
  43.   set the name of cd btn id 2 to You
  44.   hide btn id 2
  45.   put A && "*" && item choice of func && "(" & B && "* x)" into fld "function"
  46. end mouseDown
  47.  
  48.  
  49. -- part 2 (button)
  50. -- low flags: 80
  51. -- high flags: C004
  52. -- rect: left=185 top=69 right=104 bottom=296
  53. -- title width / last selected line: 0
  54. -- icon id / first selected line: 0 / 0
  55. -- text alignment: 1
  56. -- font id: 0
  57. -- text size: 12
  58. -- style flags: 0
  59. -- line height: 16
  60. -- part name: A cosh[Bx]
  61.  
  62.  
  63. -- part contents for background part 4
  64. ----- text -----
  65. Hyperbolic Function Editor
  66.  
  67. -- part contents for background part 2
  68. ----- text -----
  69. You can use this card to edit and write the hyperbolic function you wish to be graphed.  Use the "Function Editor" button or enter your equation directly below.  Use the 
  70. "Graph Equation" button to actually graph your work. 
  71. If you'd like to read more, click this button -->   
  72.  
  73. -- part contents for background part 7
  74. ----- text -----
  75. Hyperbolic Edit Box
  76.  
  77. -- part contents for background part 3
  78. ----- text -----
  79. Hyperbolic Functions
  80. Asinh(x), Acosh(x), Atanh(x)
  81.  
  82. -- part contents for background part 5
  83. ----- text -----
  84. Hyperbolic Functions are very interesting as functions go.  They are defined in terms of the exponential function exp(x) but behave very much like the trigonometric ones.  The definitions of sinh(x) and
  85. cosh(x) are given to the right.
  86.  
  87. The hyperbolics do behave in a similar 
  88. manner to the Trig functions.  For example
  89. csch(x) = 1/sinh(x).  Likewise sech(x),
  90. and ctnh(x) are the reciprocals of cosh(x)
  91. and coth(x) respectively. 
  92.  
  93. These functions have a long name and also some funny nicknames.  Sinh(x) in long terms is called the Hyperbolic Sine Function.  It's nickname, however, is pronounced "sinch"  Cosh(x) is shortened to "Cawsh"   (it sort of rhymes with wash).  Tanh(x) is said as, "Tanch" like "ranch".  Csch(x), Sech(x), Ctnh(x) are less common and I don't remember hearing them pronounced.
  94.  
  95. A very interesting feature of these functions is that they are found in many everyday instances.  In fact you have seen the graph of Cosh(x) many times.  It so happens that Cosh(x) has the same shape as the caternary.  The caternary is the shape that hanging things like ropes form when suspended in the air.
  96.  
  97. -- part contents for background part 1
  98. ----- text -----
  99. cosh (x)