Would be grateful for your help in tackling this complex polynomial where I am trying to solve for x. When I run the code below, I get the message:
value x of the domain argument should be Complexes, Reals, Algebraics, Rationals, Integers, Primes or Automatic.
What would be the best way to address this?
sol =
NSolve[
(g+0.4*(1/s)(Log[k*(1+x)*E^-r]/k +(r+s^2/2)-s)-0.16(1/s)(Log[k*(1+x)*E^-r]/k +(r+s^2/2)-s)^3+0.025(1/s)(Log[k*(1+x)*E^-r]/k +(r+s^2/2)-s)^5-0.003(1/s)(Log[k*(1+x)*E^-r]/k +(r+s^2/2)-s)^7) /
(0.4*(1/s)(Log[k*(1+x)*E^-r]/k +(r+s^2/2))-0.16(1/s)(Log[k*(1+x)*E^-r]/k +(r+s^2/2))^3+0.025(1/s)(Log[k*(1+x)*E^-r]/k +(r+s^2/2))^5-0.003(1/s)(Log[k*(1+x)*E^-r]/k +(r+s^2/2))^7)==x,
0 < x < 10,
{x, 0.25}, x]
{r, g, s, k}) must have numeric values. To useManipulateto find solutions for various numeric values of the parameters, you need to specify the range of feasible values for these parameters. – Bob Hanlon Aug 27 '19 at 20:22FindRootwhich has a syntax closer to what you are givingNSolve. Unless you supply values for the all the undefined parameters, it will be impossible to give more specific help. – m_goldberg Sep 01 '19 at 14:56NSolvework fine:r = 1; k = 2; s = 3; g = 4; e = 5;NSolve[eq, x, Reals]give me:{{x -> -0.973348}, {x -> -0.0412105}}. – Mariusz Iwaniuk Sep 01 '19 at 15:21