Nullstellen

Unsere erste Rubyprogrammieraufgabe befasst sich mit dem finden von Nullstellen einer Funktion.

Gegeben ist eine Funktion (z.B. f(x) = 5x^3 + 9x^2 + 2x + 3) und ein Intervall [a,b]. Es sollen alle Nullstellen nährungsweise im Intervall gefunden werden. Man erinnere sich, dass eine Nullstelle zwischen zwei Stellen a und b liegt, wenn f(a)*f(b) < 0 ist.

Viel Spaß beim Lösen.

This entry was posted in Ruby-Aufgaben. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Security Code: