What is the easiest way to solve a nonlinear equation?

Be gentle, I'm just dipping my toe into C#.

I have this equation that I'm trying to solve for numberToFail:

0.002 * Math.Pow((2 * numberToFail), -0.05) + 0.325 * Math.Pow((2 * numberToFail), -0.4426) - 0.012 

My first thought was to solve it by manually iterating but I know that could take forever, depending on the answer. Is there an easier way? Something, preferably, without having to worry about external libraries using just .NET?

by drewbagel423 via /r/csharp

Leave a Reply