Curves

We want to build a programm which allow to visualize the variations of numerical functions, like x -> x sin(1/x) between -Pi and Pi.

We will represent the variations of a function, say f, with argument and result of type double, on an interval x < x'. These variations will be represented by a sequence of N values (xi, f(xi)), 0 ≤ i ≤ N, where the xi are distributed regularly between x and x'.

This representation allows both to compute an approximation of the integral of f between x and x', and to visualize this variations on a graphic pane using consecutive segments.

Part 1

You have to realize a graphic component allowing to visualize the variations of any function f between two values x and  x'. The choice of the drawing precision will be done using a menu. Moreover, the following informations will be displayed : 




Part 2

You have to program a factory, given
and to interface it with the graphic component of the first part.

Part 3 (Project)

Rules for the project

You must use the correction of the previous part as starting point. 

The project must be realize by group of two students.

The report must constain

The code must be given as an executable archive (.jar) with the sources.

Evaluation criteria