home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / games / mcad.zip / S006.MCD < prev    next >
Text File  |  1987-05-12  |  1KB  |  48 lines

  1. .MCD 11000 0
  2. .TXT 1 0 1 23 
  3. 1,23
  4. IT ALL GOES TOGETHER:
  5. .TXT 0 24 3 54 
  6. 3,54
  7. With standard math notation and text to explain what 
  8. you did, your MathCAD documents are A COMPLETE, 
  9. PRESENTATION-QUALITY RECORD OF YOUR CALCULATIONS.
  10. .TXT 3 -24 1 76 
  11. 1,76
  12. --------------------------------------------------------------------------
  13. .TXT 1 0 1 32 
  14. 1,32
  15. FAST FOURIER TRANSFORM EXAMPLE
  16. .TXT 2 5 1 45 
  17. 1,45
  18. Generate sine curve with a random component
  19. .TXT 0 53 1 13 
  20. 1,13
  21. TIME DOMAIN
  22. .EQN 1 -38 3 30 
  23. ! rd=d ct=10 im=i et=6 zt=15 pr=3 mass length time charge 
  24. x[k:sin(k*π/8)+rnd(1)-.5
  25. .EQN 0 34 7 20 
  26. 2&-2&x[k{1,1,6,15,l}@16&0&k
  27. .EQN 1 -48 1 12 
  28. k~0;15
  29. .TXT 3 -1 2 37 
  30. 2,37
  31. Now take the transform of the curve 
  32. and look at the power spectrum:
  33. .EQN 3 10 1 14 
  34. z:cfft(x)
  35. .TXT 0 22 1 18 
  36. 1,18
  37. FREQUENCY DOMAIN
  38. .EQN 1 -6 7 24 
  39. 3&0&|z[k,0{1,1,6,15,e}@16&0&k
  40. .TXT 1 -26 2 20 
  41. 2,20
  42. The spectrum shows 
  43. two peaks: 
  44. .EQN 2 3 2 23 
  45. z[1=(-0.078+2.14i)?
  46. .EQN 2 0 2 24 
  47. z[15=(-0.078-2.14i)?
  48.