Talk:Bisection method: Difference between revisions

Content deleted Content added
enumeration: explain Corliss more
Line 26:
 
: No. Bisection method will happily converge to a root even if it occurs at the endpoint. It will just converge to the endpoint with the root. The given pseudocde is proper in that it will consider an interval beginning or ending at 0 to have a sign change. Admittedly, this isn't exactly an efficient approach, but it certainly gives clear code without extraneous conditions. [[User:Majromax|Majromax]] ([[User talk:Majromax|talk]]) 22:38, 19 November 2007 (UTC)
 
:: Incorrect. The code checks if it is < 0, and if the left, right, or midpoint is exactly zero, an infinite loop would have occurred. Added a simple else - no performance hit compare dto the normal function. It could still be efficientized though.
 
== Visual Basic Code ==