Advertisement
GregroxMun

Polynomial Test 2

Aug 2nd, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. @Kopernicus:AFTER[Vernians]
  2. {
  3. Body
  4. {
  5. PolynomialFunction
  6. {
  7. //y=1.8+(0.06(x^6 - 21.29x^5 + 180.145x^4 - 770.323x^3 + 1739.539x^2 - 1937.123x + 808.053))
  8. //Useful Domain: 1 < x < 6
  9.  
  10. X = 2
  11. //input
  12.  
  13. Xt1 = #$X$
  14. @Xt1 != 6
  15.  
  16. Xt2 = #$X$
  17. @Xt2 != 5
  18. @Xt2 *= 21.29
  19.  
  20. Xt3 = #$X$
  21. @Xt3 != 4
  22. @Xt3 *= 180.145
  23.  
  24. Xt4 = #$X$
  25. @Xt4 != 3
  26. @Xt4 *= 770.323
  27.  
  28. Xt5 = #$X$
  29. @Xt5 != 2
  30. @Xt5 *= 1739.539
  31.  
  32. Xt6 = #$X$
  33. @Xt6 != 1
  34. @Xt6 *= 1937.123
  35.  
  36. Xt7 = #$X$
  37. @Xt7 *= 808.053
  38.  
  39. Yans1 = #$Xt1$
  40. @Yans += #$Xt2$
  41. @Yans += #$Xt3$
  42. @Yans += #$Xt4$
  43. @Yans += #$Xt5$
  44. @Yans += #$Xt6$
  45. @Yans += #$Xt7$
  46. @Yans *= 0.06
  47. @Yans += 1.8
  48.  
  49. }
  50. }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement