Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 2.24 KB

README.md

File metadata and controls

34 lines (22 loc) · 2.24 KB

Fundamentals of Numerical Computation

These are core functions for the text Fundamentals of Numerical Computation by T. A. Driscoll and R. J. Braun. They are a companion to the Julia (2nd) edition, to be published in 2022.

For Julia versions of the functions accompanying the MATLAB (first) edition, go to https://github.com/fncbook/fnc instead.

Installation

  1. Install Julia. Any of the available methods for the latest stable version 1.x should be fine. The Julia Pro version comes with an integrated editor and many preinstalled packages, and it might be the best choice for those not comfortable with their command line shell.

  2. Start Julia on your machine. Look for the julia> prompt.

  3. At the prompt type the ] character. This will turn the prompt a different color and say pkg>, indicating that you can give commands to the package manager.

  4. At the pkg prompt, type

    add https://github.com/fncbook/FundamentalsNumericalComputation.jl

    The process will take a while. (In order to flatten the learning curve, this package loads many other standard numerical and plotting packages and makes them available, so there is a lot of code to install and compile.)

  5. Hit the backspace (delete on Mac) key to go back to the main Julia prompt. Steps 3-5 should only need to be done once per installation.

  6. In order to use the functions, in each new Julia session you must enter

    using FundamentalsNumericalComputation

    After this completes, all the text's functions can be accessed with the prefix FNC. E.g., FNC.lufact, FNC.rk23, etc.

Startup speed

After installation, importing the package with a using statement should only take 5-10 seconds in Julia 1.6 or later. The first plot created in a Julia session may take 20-60 seconds to appear. This is a well-known irritant in the Julia ecosystem, and progress is steadily being made toward reducing the lag. In the meantime, power users might investigate using PackageCompiler to get better startup performance.

License

This code generating the site is under an MIT license. Please see the LICENSE file for details.