xFunc icon indicating copy to clipboard operation
xFunc copied to clipboard

The equation solving.

Open sys27 opened this issue 11 years ago • 5 comments

sys27 avatar Sep 10 '13 15:09 sys27

Brent's method

sys27 avatar Oct 16 '17 20:10 sys27

Hi, do you still plan to implement a solve-method? Like this, solve(cos(x^2)=0.5, x). It would be great ;)

Kind Regards Ronny

ronnycsharp avatar Oct 23 '17 21:10 ronnycsharp

@ronnycsharp

Hello, I posted previous comment just to save the link to Brent's method algorithm (for future), but I'm not sure, when and how I will implement the Solve function (the current ticket was opened 4 years age =) ).

Probably, I should use external library (eg. Accord .NET), which has already implemented algorithm.

P.S. Also, these algorithms provide approximate solution, maybe there is a symbolic (like I will do it on paper, eg. same problem as for Integrals) algorithm.

sys27 avatar Oct 24 '17 18:10 sys27

Maybe we could integrate the Accord Algorithm. It sounds like a good solution, if the source is under the right license.

Do you mean Brents method is a good way to solve a function like x^2+y^2+z^2=4 for z? Thx, Regards Ronny

ronnycsharp avatar Oct 27 '17 20:10 ronnycsharp

The solve function is already implemented in my dev-branch. Please look into it, if you want to merge it into your code. I solved it with Newton-Raphson-Method.

ronnycsharp avatar Dec 21 '18 12:12 ronnycsharp