home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / MATH / VISSIM.ZIP / ROOTS.VSM < prev    next >
Text File  |  1994-02-28  |  2KB  |  79 lines

  1. ; VisSim Block Diagram Format (VBDF)
  2. ; Copyright (C) 1989-1994 Visual Solutions
  3. PV=1.500
  4. PS=0
  5. PE=1
  6. PP=0.05
  7. PI=170
  8. PX=0.05
  9. PN=1e-006
  10. PL=5
  11. PT=1e-005
  12. Pn=-9,6,16,"Times New Roman"
  13. Pc=25
  14. Po=0.01,50,664
  15. PC=2,100,0.0001,1,1e-007
  16. PD=800x600
  17. Pf=0x1
  18. Pr="stub"
  19. Ps=800,0,0,552,0,0
  20. Pd=17
  21. PM=1,1,1,1
  22. N.1="variable"*25x22
  23. n="y"
  24. N.2="const"(0)*3x22
  25. N.3="constraint"(0.001,0)*111x37
  26. N.4="unknown"(0)*9x22
  27. N.5="variable"*28x35
  28. n="y"
  29. N.6="gain"(4)*45x35
  30. N.7="const"(-5)*47x37
  31. N.8="summingJunction"*57x33#3,1
  32. N.9="display"(-5.0000000012525)*35x22
  33. N.10="variable"*28x50
  34. n="y"
  35. N.11="const"(0)*31x56
  36. N.12=">"*38x54
  37. N.13="*"*54x53
  38. N.14="gain"(3)*64x54
  39. N.15="summingJunction"*89x36
  40. N.16="display"(0)*88x54
  41. N.17="*"*76x35
  42. N.18="wireLabel"*47x29
  43. n="Equation to be solved"
  44. N.19="wireLabel"*51x49
  45. n="Penalty, y must be < 0"
  46. N.20="display"(5.6474239825396e-017)*104x31
  47. N.21="comment"*1x1*89x8
  48. C="This block diagram uses constraint and unknown blocks to find one of the roots (-5) of the quadratic equation y^2 + 4y - 5 = 0.  A penalty function is added to the constraint function to force the discovered root to be less than 0. 
  49.  
  50. "
  51. N.22="pow"(2)*74x54
  52. N.23="pow"(2)*45x33
  53. N.24="wireLabel"*95x40
  54. n="                   Total error
  55. (penalty function + equation err"
  56. N.25="wireLabel"*36x19
  57. n="Root"
  58. I.1.i1=4.o1
  59. I.3.i1=15.o1
  60. I.4.i1=2.o1
  61. I.6.i1=5.o1
  62. I.8.i1=23.o1
  63. I.8.i2=6.o1
  64. I.8.i3=7.o1
  65. I.9.i1=1.o1
  66. I.12.i1=10.o1
  67. I.12.i2=11.o1
  68. I.13.i1=10.o1
  69. I.13.i2=12.o1
  70. I.14.i1=13.o1
  71. I.15.i1=17.o1
  72. I.15.i2=22.o1
  73. I.16.i1=22.o1
  74. I.17.i1=8.o1
  75. I.17.i2=8.o1
  76. I.20.i1=15.o1
  77. I.22.i1=14.o1
  78. I.23.i1=5.o1
  79.