Skip to content

Zo-Bro-23/newton-method

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published