Roots of a function: Difference between revisions

Content added Content deleted
(Added Java)
m (Superscripts look cooler)
Line 1: Line 1:
{{task}}Create a program that finds and outputs the roots of a given function, range and (if applicable) step width. The program should identify whether the root is exact or approximate.
{{task}}Create a program that finds and outputs the roots of a given function, range and (if applicable) step width. The program should identify whether the root is exact or approximate.


For this example, use f(x)=x^3-3x^2+2x.
For this example, use f(x)=x<sup>3</sup>-3x<sup>2</sup>+2x.


=={{header|Ada}}==
=={{header|Ada}}==