Advertisement
Aes_Sedia5

MATHPACK(Calculus)

Dec 1st, 2011
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. :Program ZZCALC
  2. :While 1
  3. :¦ "MADE BY AES SEDIA5→Str1
  4. :¦ "CEMETECH:NET→Str2
  5. :¦ Normal
  6. :¦ Float
  7. :¦ a+bi
  8. :¦ AxesOff
  9. :¦ ClrDraw
  10. :¦ Text(1,1,"CALCULUS
  11. :¦ Text(7,1,"1.FIND REIMUNS SUM
  12. :¦ Text(13,1,"2.FIND DERIVATIVE
  13. :¦ Text(43,1,"7.EXIT
  14. :¦ Text(49,1,Str1
  15. :¦ Text(55,1,Str2
  16. :¦ Repeat K
  17. :¦ ¦ getKey→K
  18. :¦ End
  19. :¦ If K=72
  20. :¦ Then
  21. :¦ ¦ ClrDraw
  22. :¦ ¦ Text(1,1,"THANKS FOR USING
  23. :¦ ¦ Text(7,1,"CALCULUS
  24. :¦ ¦ Text(13,1,"FROM THE FIVE PACK
  25. :¦ ¦ Text(19,1,"OF MATH"
  26. :¦ ¦ Text(49,1,Str1
  27. :¦ ¦ Text(55,1,Str2
  28. :¦ ¦ rand(100)
  29. :¦ ¦ ClrDraw
  30. :¦ ¦ DelVar K
  31. :¦ ¦ Return
  32. :¦ End
  33. :¦ If K=92
  34. :¦ Then
  35. :¦ ¦ ClrDraw
  36. :¦ ¦ Text(1,1,"WHAT SHAPE ARE YOU USING
  37. :¦ ¦ Text(7,1,"1.SQUARE
  38. :¦ ¦ Text(13,1,"2.TRIANGLE
  39. :¦ ¦ Text(19,1,"3.CIRCLES
  40. :¦ ¦ Text(25,1,"4.BACK
  41. :¦ ¦ Text(43,1,"7.EXIT
  42. :¦ ¦ Text(49,1,Str1
  43. :¦ ¦ Text(55,1,Str2
  44. :¦ ¦ Repeat Ans
  45. :¦ ¦ ¦ getKey
  46. :¦ ¦ End
  47. :¦ ¦ If Ans=92
  48. :¦ ¦ 1→Z
  49. :¦ ¦ If Ans=93
  50. :¦ ¦ √(3)/4→Z
  51. :¦ ¦ If Ans=94
  52. :¦ ¦ π/8→Z
  53. :¦ ¦ If K=92
  54. :¦ ¦ Then
  55. :¦ ¦ ¦ ClrHome
  56. :¦ ¦ ¦ Input "HEIGHT FORMULA",Str1
  57. :¦ ¦ ¦ String►Equ(Str1,Y1
  58. :¦ ¦ ¦ Input "LOWER BOUND FORMULA",Str2
  59. :¦ ¦ ¦ String►Equ(Str2,Y2)
  60. :¦ ¦ ¦ Input "LEFT BOUND",P
  61. :¦ ¦ ¦ Input "RIGHT BOUND",Q
  62. :¦ ¦ ¦ abs(Q-P→L
  63. :¦ ¦ ¦ Input "NUMBER OF PARTITION",N
  64. :¦ ¦ ¦ (L/N)→V
  65. :¦ ¦ ¦ 0→X:0→T:0→C
  66. :¦ ¦ ¦ Repeat C=L
  67. :¦ ¦ ¦ ¦ X+V→X
  68. :¦ ¦ ¦ ¦ (ZV)((Y1-Y2))2→U
  69. :¦ ¦ ¦ ¦ U+T→T
  70. :¦ ¦ ¦ ¦ C+V→C
  71. :¦ ¦ ¦ End
  72. :¦ ¦ ¦ Disp "RIGHT EDGE SUM":Pause T
  73. :¦ ¦ ¦ 0→X:0→C:0→S
  74. :¦ ¦ ¦ Repeat C=(L-V)
  75. :¦ ¦ ¦ ¦ X+V→X
  76. :¦ ¦ ¦ ¦ (ZV)((Y1-Y2))2→U
  77. :¦ ¦ ¦ ¦ U+S→S
  78. :¦ ¦ ¦ ¦ C+V→C
  79. :¦ ¦ ¦ End
  80. :¦ ¦ ¦ Disp "LEFT EDGE SUM
  81. :¦ ¦ ¦ Pause S
  82. :¦ ¦ ¦ (T+S)/2→K
  83. :¦ ¦ ¦ Disp "TOTAL VOLUME
  84. :¦ ¦ ¦ Pause K
  85. :¦ ¦ ¦ DelVar Y1DelVar Y2
  86. :¦ ¦ End
  87. :¦ End
  88. :End
  89.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement