Description Usage Arguments Value

False position method root finding

1 | ```
falsePositionMethod(f, x1, x2, maxIter, targetError)
``` |

`f` |
The function to optimise to zero. Must take exactly 1 parameter |

`x1` |
First guess |

`x2` |
Second guess |

`maxIter` |
Maximum number of iterations to run for |

`targetError` |
Maximum error before the solution will be accepted as correct |

X value which returns zero. If root finding fails, returns NA

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.