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

  1. -- card: 8538 from stack: in
  2. -- bmap block id: 4607
  3. -- flags: 2000
  4. -- background id: 5839
  5. -- name: Custom
  6.  
  7.  
  8. -- part 2 (button)
  9. -- low flags: 00
  10. -- high flags: 0000
  11. -- rect: left=421 top=58 right=106 bottom=483
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Function Editor
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   pass mouseUp
  23. end mouseUp
  24.  
  25.  
  26.  
  27. -- part contents for background part 4
  28. ----- text -----
  29. Custom Function Editor
  30.  
  31. -- part contents for background part 2
  32. ----- text -----
  33. You can use this card to edit and write your own functions.  It may be helpful for forming those oddball functions which just don't fit into any particular category.  You can use the 
  34. "Graph Equation" button when your finished. 
  35. If you'd like to read more, click this button -->   
  36.  
  37. -- part contents for background part 7
  38. ----- text -----
  39. Your Very Own Edit Box
  40.  
  41. -- part contents for background part 3
  42. ----- text -----
  43. Your custom function can be any general function or may be a combination of other functions.
  44.  
  45. -- part contents for background part 5
  46. ----- text -----
  47. This function editor was provided to help you write functions that have not been provided for in this stack.  In order to write your own functions you will have to be somewhat familiar with the HyperTalk language.
  48. You can get some idea of the syntax by looking at the equations in the other function editor sections.  Another place to look is in the Help Stacks provided by Apple.  Go to the HyperTalk section and browse through the sections on mathematical functions.  
  49. Another place to look is Apple's book, HyperCard┬⌐ Script Language Guide: The HyperTalkΓäó Language.
  50.  
  51. If you just want to combine functions then you can always cut and paste material from one Editing box to another.   You can get some very interesting functions in this manner.  
  52. You might want to try some of these:
  53.  
  54.      f (x) = exp(-x) * sin(x)
  55.      f (x) = sin(x) + cos(x)
  56.      f (x) = 1 - exp(-x)
  57.      f (x) = 2 * (trunc(round(sin(x))))
  58.      f (x) = exp(sin(x))
  59.      f (x) = trunc(x)
  60.      f (x) = abs(sin(x))
  61.      f (x) = -abs(cos(x))
  62.      f (x) = x + cos(x)
  63.  
  64. The idea is for you to experiment!
  65. As usual you can click anywhere to dismiss this help section.
  66.  
  67.  
  68. -- part contents for background part 1
  69. ----- text -----
  70. sin(tan(x))