1.0.1 • Published 1 year ago

newton-method v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Newton-Method

This is a simple package demonstrating the Newton Method for finding roots of a function. Learn more.

const newtonMethod = require('newton-method')

console.log(newtonMethod('x^2', 100, 5))

newtonMethod(func, inputIterations, inputInitial)

func - Required - Function to evaluate - Uses mathjs formatting - See here for more information

inputIterations - Default: 100 - Number of times to iterate Newton's Method - More times yields more accurate results

inputInitial - Default: 0 - Initial value to start applying Newton's Method to

Result

3.944304526105059e-30
1.0.1

1 year ago

1.0.0

2 years ago