Learn R Programming

⚠️There's a newer version (1.0.5) of this package.Take me there.

Computational Methods for Numerical Analysis

This is the R package to support Computational Methods for Numerical Analysis with R by James P. Howard, II. This book is scheduled for publication in 2016 and will include a variety of implementations of numerical analysis algorithms in pure R.

Algorithms included

  • Elementary and Example Algorithms
    • Polynomial Expansion
      • Naive (naivepoly)
      • Cached Naive (betterpoly)
      • Horner's Method (horner, rhorner)
    • Summation
      • Naive Summation (naivesum)
      • Kahan Summation (kahansum)
    • Division
      • Naive Division (naivediv)
      • Long Division (longdiv)
    • Miscellaneous
      • Naive Primality tester (isPrime)
      • Nth Root (nthroot)
      • Quadratic Formula (quadratic, quadratic2)
    • Samples
      • Fibbonaci (fibonacci)
      • Wilinson's Polynomial (wilkinson)
      • Himmelblau (himmelblau)
  • Linear Algebra
    • Row/Vector Operations
      • Row Replacement (replacerow)
      • Scale Row (scalerow)
      • Swap Rows (swaprows)
      • Norm of a Vector (vecnorm)
    • Elementary Functions
      • Determinant (detmatrix)
      • Matrix Inverse (invmatrix)
      • Row-Echelon Form (refmatrix)
      • Reduced Row-Echelon Form (rrefmatrix)
      • Solve a Matrix, Using Row Reduction (solvematrix)
    • Decompositions
      • Cholesky Decomposition (choleskymatrix)
      • LU Decomposition (lumatrix)
    • Iterative Methods
      • Conjugate Gradient (cgmmatrix)
      • Gauss Seidel (gaussseidel)
      • Jacobi (jacobi)
    • Specialty Methods
      • Tridiagonal Matrix Solver (tridiagmatrix)
  • Interpolation and Extrapolation
    • Polynomial Interpolation
      • Liner Interpolation (linterp)
      • Polynomial Interpolation (polyinterp)
    • Splines
      • Piecewise Linear (pwiselinterp)
      • Cubic Spline (cubicspline)
    • Bezier
      • Quadratic Bezier (qbezier)
      • Cubic Bezier (cbezier)
    • Multidimensional Interpolaters
      • Bilinear (bilinear)
      • Nearest Neighbor (nn)
    • Applications
      • Image Resizing (resizeImageNN, resizeImageBL)
  • Differentiation
    • Finite Differences
      • One-Step (findiff)
      • More Differentiators (symdiff, rdiff)
      • Second Derivative (findiff2)
  • Numerical Integration
    • Newton-Cotes
      • Midpoint Method (midpt)
      • Trapezoid Method (trap)
      • Simpson's Rule (simp)
      • Simpson's 3/8s Rule (simp38)
    • Gaussian Integration
      • Driver (gaussint)
      • Specific forms (gauss.hermite, gauss.laguerre, gauss.legendre)
    • Adaptive Integrators
      • Recursive Adaptive (adaptint)
      • Romberg (romberg)
    • Monte Carlo
      • Monte Carlo Integration, 1D (mcint)
      • Monte Carlo Integration, 2D (mcint2)
    • Applications
      • Shell Method for Revolved Volume (shellmethod)
      • Disc Method for Revolved Volume (discmethod)
      • Gini Coefficient (giniquintile)
  • Root Finding
    • Bisection Method (bisection)
    • Newton's Method (newton)
    • Secant Method (secant)
  • Optimization
    • Continuous
      • Golden Section (goldsectmax, goldsectmin)
      • Gradient Descent (gd, gdls, gradasc, graddsc)
      • Hill Climbing (hillclimbing)
      • Simulated Annealing (sa)
    • Discrete
      • Traveling Salesperson Problem (tspsa)
  • Differential Equations
    • Initial Value Problems
      • Euler Method (euler)
      • Midpoint Method (midptivp)
      • Fouth-Order Runge-Kutta (rungekutta4)
      • Adams-Bashforth (adamsbashforth)
    • Systems of Differential Equations
      • Euler Method (eulersys)
    • Partial Differential Equations
      • Heat Equation, 1D (heat)
      • Wave Equation, 1D (wave)
    • Applications
      • Boundary Value Problems (bvpexample, bvpexample10)

Dependencies

  • testthat
  • roxygen2

Contribution guidelines

For more information

Copy Link

Version

Install

install.packages('cmna')

Monthly Downloads

404

Version

1.0.0

License

BSD_2_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

James P. Howard

Last Published

June 13th, 2017

Functions in cmna (1.0.0)

bvp

Boundary value problems
choleskymatrix

Cholesky Decomposition
detmatrix

Calculate the determinant of the matrix
division

Algorithms for divisions
fibonacci

Fibonacci numbers
findiff

Finite Differences
linterp

Linear interpolation
lumatrix

LU Decomposition
adaptint

Adaptive Integration
bezier

Bezier curves
gaussint

Gaussian integration method driver
gdls

Least squares with graident descent
newton

Newton's method
revolution-solid

Volumes of solids of revolution
romberg

Romberg Integration
nn

Nearest interpolation
simp38

Simpson's 3/8 rule
summation

Two summing algorithms
ivp

Initial value problems
ivpsys

Initial value problems for systems of ordinary differential equations
pwiselinterp

Piecewise linear interpolation
giniquintile

Gini coefficients
goldsect

Golden Section Search
isPrime

Test for Primality
quadratic

The quadratic equation.
secant

Secant Method
simp

Simpson's rule
iterativematrix

Solve a matrix using iterative methods
trap

Trapezoid method
tridiagmatrix

Solve a tridiagonal matrix
bilinear

Bilinear interpolation
bisection

The Bisection Method
hillclimbing

Hill climbing
himmelblau

Himmelblau Function
cmna-package

Computational Methods for Numerical Analysis
cubicspline

Natural cubic spline interpolation
gradient

Gradient descent
heat

Heat Equation via Forward-Time Central-Space
mcint

Monte Carlo Integration
midpt

rectangle method
refmatrix

Matrix to Row Echelon Form
resizeImage

Image resizing
rowops

Elementary row operations
sa

Simulated annealing
horner

Horner's rule
invmatrix

Invert a matrix
nthroot

The n-th root formula
polyinterp

Polynomial interpolation
vecnorm

Norm of a vector
wave

Wave Equation using
wilkinson

Wilkinson's Polynomial