Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. t1[x_] := 77.4 + 25.27*x - 33.66*x^2 + 51.52*x^3 - 42.65*x^4 + 12.32*x^5;
  2.  
  3. t2[x_] := 77.4 + 8.372*x - 6.162*x^2 + 14.62*x^3 + 2.201*x^4 - 6.235*x^5;
  4.  
  5. p1 = Plot[{t1[x], t2[x]}, {x, 0, 1}, Frame -> True, PlotRange -> {{0, 1}, {76, 92}},
  6. PlotLegends -> "Expressions", ImageSize -> Large]
  7.  
  8.  
  9. no = 40*0.21;
  10. nn = 40*0.79;
  11.  
  12. xg = FindRoot[t1[x] == 78, {x, 1}];
  13. xl = FindRoot[t2[x] == 83, {x, 1}];
  14.  
  15.  
  16. sol = Flatten[Thread[Solve[{xg == ngo/(ngn + ngo), xl == nlo/(nln + nlo),
  17. no == ngo + nlo, nn == ngn + nln}, {ngo, nlo, ngn, nln}, Reals]]]
  18.  
  19.  
  20. p2 = Graphics[Point[{ngo, nlo, ngn, nln}]]
  21. p3 = ListPlot[{ngo, nlo, ngn, nln}]
  22. Show[p1, p2, p3]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement