Guest User

Untitled

a guest
Nov 22nd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. Log10[x/(1 - x)] == A + y
  2. z == B w
  3. z + v == C y
  4. Ee == w + y
  5. v == D x
  6.  
  7. eqns = {x4, x5, x6, x8, x9}
  8.  
  9. vars = {x, y, z, w, v};
  10.  
  11. (* Makes a table of solutions for values of Ee that vary from 0.3 to 0.7 *)
  12. sols[evalue_] := NSolve[eqns /. Ee -> evalue, vars, Reals]
  13. sollist = Table[sols[Ee], {Ee, 0.3, 0.7, 0.05}]
  14.  
  15. (* Compiles a list of log10[x/(1-x)] *)
  16. masterlist = {}
  17. Do[logx1x[sollist[[i, 1]]], {i, 9}]
  18.  
  19. logx1x = Function[singlesol,
  20. frac = singlesol[[1, 2]];
  21. frac = N[Log10[frac/(1 - frac)]];
  22. Print[frac];
  23. AppendTo[masterlist, frac]
  24. ]
Add Comment
Please, Sign In to add comment