Skip to content

ctkelley/N3Presults

Repository files navigation

N3Presults: notebook for Newton's Method in Three Precisions

This Git repo supports my paper

C. T. Kelley, Newton's Method in Three Precisions, 2023. Pacific Journal of Optimization, vol 20, 2024, pp 461-474.

Use the latest release of Julia (1.12) with this stuff!!!

New Version

This version replaces PyPlot with PythonPlot and Polyester with OhMyThreads. Neither PyPlot nor Polyester work with the latest versions of Julia or IJulia.

What's here

The software is in Julia and I have included

Prerequisites

You must know enough Julia to

  • install packages,
  • run an IJulia notebook,
  • and manage Github.

Dependencies

To run this notebook you will need to add these packages

  • IJulia
  • SIAMFANLEquations
  • PythonPlot
  • OhMyThreads

When you add these packages, you will also add many other packages. If you have not added them already, that could take a bit of time.

Running the codes

To run the notebook

  • clone this repositoory
  • go to the directory for the clone on your filesystem
  • start Julia
  • Type notebook(;dir=pwd()) at the julia prompt
  • click on the notebook N3Presults.ipynb
  • Using PythonPlot will print several lines of useless drivel. That is unfortunately what it likes to do, but it does no harm.

The tricky stuff.

To fully understand this material you'll need to understand how to use nsol.jl from SIAMFANLEquations.jl. The solver is well documented in the book and the notebook.

I manage the coupling of iterative refinement and the nonlinear solver with a data structure MPArray. I am building a package for this, but it will not be done in time for this paper. I've put a preliminary version in file src/MultiPrecisionArraysv0.jl that works for this repo. It is not completely documented nor have I made any final decsions on the user interface. The package repo is MultiPrecisionArrays.jl.

Funding

This work was partially supported by

  • US Department of Energy grant DE-NA003967 and
  • National Science Foundation Grant DMS-1906446.

About

Software for the results in "Newton's Method in Three Precisions

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors