Hi,
I have a nonlinear equation that I need to sovle for 'x'. Following is my code:
syms x q N q=.95;N=500;eqn = 2*log((((N-x)/(q*N))^(N-x))*((x/((1-q)*N))^x)) == 3.841;solx = solve(eqn, x);
I am expecting two values for 'x' but am getting just one (i.e. ~35). I am not getting the other value of 16. Also I get the following warning:
Warning: Cannot solve symbolically. Returning a numeric approximation instead.
Please tell me what I am doing wrong.
Thanks,
Best Answer