First time here? Check out the FAQ!

Ask Your Question
2

newton's method for multiple variables / arbitrary precision

asked 10 years ago

mf gravatar image

I am trying to find a numerical approximation with arbitrary precision to a real solution to a system of multivariate polynomial equations. I start out with an approximation which is somewhat close to solving the system, up to an precision of about 1e-05. (Meaning that the equations that I try to evaluate are not zero, but smaller than 1e-05 for my starting value)

In this question is it recommended to use scipy's fmin_tnc method, which is what I did. This works out very nicely and it quickly gave a new solution which now solves my system with precision 1e-07. In the Scipy doc it is stated that one can set the "epsilon" parameter, but not smaller than machine precision. So it seems like I can't get much more precision with this method?!

Let's say I want to solve my system with precision 1e-250. My questions are:

  1. Can I use the fmin_tnc function to find solutions with higher precision?
  2. I there another way in sage to find real solutions to polynomial systems locally (e.g. with the pari/gp)?
Preview: (hide)

Comments

Could you provide the system? I do not know whether pari/gp can help, but it is not hard to setup a Newton method. From what I saw the method fmin_trunc looks much more powerful than what you need.

vdelecroix gravatar imagevdelecroix ( 10 years ago )

@vdelecroix: I figured out how to do this, see my answer below

mf gravatar imagemf ( 10 years ago )

@mf: cool! Could you select your answer (that way your question will be seen as answered in the list).

vdelecroix gravatar imagevdelecroix ( 10 years ago )

@vdelecroix: will do as soon as I have enough karma to do so..

mf gravatar imagemf ( 10 years ago )

1 Answer

Sort by » oldest newest most voted
2

answered 10 years ago

mf gravatar image

updated 10 years ago

calc314 gravatar image

One easy way to this is to use mpmath.findroot!

Preview: (hide)
link

Comments

Nice! I've added a link to the documentation.

calc314 gravatar imagecalc314 ( 10 years ago )
slelievre gravatar imageslelievre ( 6 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 10 years ago

Seen: 1,317 times

Last updated: Jul 03 '14