Opening the book…
- 11.1: Solving Nonlinear Equations with fzero()
- Introduction to solving non-linear equations numerically using the fzero() function.
- 11.2: fzero() Examples and Exercises
- Examples and exercises of finding the zero of a single equation and of finding the intersection of 2 equations.
- 11.3: Using fzero() to find the intersection of 2 functions
- The intersection of 2 functions can be found by creating a 3rd function = the difference of the 2 functions.
- 11.4: Subfunctions
- A subfunction is a function included at the bottom of a script or function file.
- 11.5: Anonymous (or In-Line) Functions
- There is an option in MATLAB and Octave to create in-line functions.
- 11.6: Debugging- More Name Collisions
- Methods of debugging code.
- 11.7: Fourier Transforms
- Fourier Transforms
The next section describes how to solve for the roots (zeros) of a function called "error_func" using the fzero() function. The function is called "error_func" because the value it returns is the amount that the a particular value of x causes the function to differ from zero.
You can use fzero to solve for the zeros of a function with any name; your function does not need to be named "error_func".
This page titled 11: Zero Finding and Fourier Transforms was last modified on Tue, 04 Apr 2023 02:37:03 GMT and is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Carey Smith.
The book could not be loaded just now.