This preview shows page 1. Sign up to view the full content.
Unformatted text preview: qual the average distance from center? Given an measure of the voltage across a synapse, what is the time duration between signal rise and fall? University of Mississippi Dept. of Physics and Astronomy Phys 503, Dr. Gladden Sometimes simplest methods work “good enough”! It depends on how accurately you want to know the root and whether you need the process automated. Graphical method Just plot the function and zoom on on the zero crossings. Accuracy depends on how fine your independent variable array is. Needs human input – not good for many equations. Brute Force method Start at some minimum value for x and step up in small increments until the function switches sign. Can then back up with smaller increment steps. NOT very efficient – requires MANY evaluations of the function! University of Mississippi Dept. of Physics and Astronomy Phys 503, Dr. Gladden Just like the binary search we discussed before. Initial bracket for root is between xlow and xhigh. See if f (xlow ) · f (xhigh ) < 0 NO: even number of roots or no root YES: test if f (xlow ) · f (xmid ) < 0 else: xlow = xmid Repeat until some desired tolerance for the solution is achieved: |xhigh − xmid | < F...
View Full Document
This note was uploaded on 10/05/2010 for the course PHYS phy503 taught by Professor Gladden during the Spring '09 term at Ole Miss.
- Spring '09