Solving nonlinear equation inside for loop
3 views (last 30 days)
I want to solve for p in the following equation: a1*P^0.5+a2*p+a3*p^1.5=k
if I need to iterate K from 1 to 10000 this is the code:
however I get the following error: Index exceeds the number of array elements (1).