Does a solution near(er) to zero exist? PLOT IT!!!!!!
f = (-27109/x)-0.95*log(x)+25.18 - log(0.5);
Do you see anything strange? A solution would correspond to a point where that curve crosses the line y == 0. Looking a little further up, we finally see this:
So a solution seems to occur near x == 1500.
S = vpasolve(f,x,1500)
S = 1428.9171626682572235629898202448
However, it you look further out, the curve reaches a peak, and then starts to drop again. It may well cross zero again out there.
Did you tell vpasolve which root it should find? Should it know?
vpasolve is a numerical root finder. It looks for a root, near where you tell it to look. If you don't tell it where, it picks a spot. And sometimes, it may end up converging to a solution you don't like.
0 Comments
Sign in to comment.