Trying to solve for p in the equation below (eqn), Matlab is taking forever to solve it so im unsure how to optimize or if a better solve function exists. It can plot it easy enough, just solving for any value of p is impossible it seems.
A_1 = 0.1044;
R_1 = 84.0038;
A_2 = 0.02667;
R_2 = 118.4852;
h_max_2 = 1.889;
q_s = 0.08;
a = 1/(A_2*R_2);
b = 1/(A_1*R_1);
c = 1/(A_1*A_2*R_1);
syms p
eqn = h_max_2 == q_s*c*1/(a*b)*(1+1/(a-b)*(b*exp(-a*p)-a*exp(-b*p)));
time_until = solve(eqn_2,p)