I have a system of equations with a single parameter Ee that I would like to vary from 0 to 1 with step sizes of 0.01. I have been able to get solutions with this format by manually changing Ee (there's no solution for a few values of Ee but that's fine), but now I want to get these solutions automatically. This is my code right now:
T = 298
e = 1.6*10^-19
F = 96500
k = 1.38*10^-23
R = 8.31
Γ = 10^-10
A = 0
B = F/(2.3 R T)
c = 88.5
d = 7.2
H = 2 k T/e
G = -F Γ*10^6
(* Ee = ???? *)
x4 = Log10[x/(1 - x)] == A + y B
x5 = z == c w
x6 = z + v == d H y /H
x8 = Ee == w + y
x9 = v == G x
eqns = {x4, x5, x6, x8, x9}
vars = {x, y, z, w, v};
NSolve[eqns, vars, Reals]
I saw another answer around here that suggested using this:
parameter = {1,2,3,4,5};
equation = x + parameter;
NSolve[# == 0, {x}] & /@ equation
or this:
NSolve[x + # == 0, x] & /@ {1, 2, 3, 4}
But I'm not sure how to apply that to my system. I tried to replace Ee in equation x8 with # and then writing NSolve[eqns, vars, Reals] & /@ {0, 1}, but that's incorrect. I also tried setting Ee = {0,1} and writing NSolve[#, vars, Reals] & /@ eqns, but that is incorrect as well since Mathematica returns the warning "Infinite solution set has dimension at least 1." What will allow me to solve this system at every value of the parameter?