Is it possible to solve equations with 1 unknown?

Hi.
Is it possible to solve equations using R with one unknown variable? I've tried some different things but can't come up with a solution. Here's my equation:

p*(1+p^2) + (1-p) * (3+2 * p * (1-p)) == p * (3+2 * p * (1-p)) + (1-p) * (1+(1 * 2 * p * p^2))

I want to calculate the variable "p".

Thanks

y = x*(1+x^2) + (1-x) * (3+2 * x * (1-x)) - x * (3+2 * x * (1-x)) - (1-x) * (1+(1 * 2 * x * x^2))
Well, you could graph it.
There are numerical methods like Newton-Raphson, but the solutions are close together and N-R may not converge.

image

Seems to me you can expand that equation into a standard biquadratic polynomial. Then you can use the polyroot() function.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.