ESERCIZIO: GRAFICO DI F(X)
class FunctionPanel extends JPanel {
int xMin=-7, xMax=7, yMin=-1, yMax=1;
int larghezza=500, altezza=400;
float fattoreScalaX, fattoreScalaY;
public void paintComponent(Graphics g){
setBackground(Color.white);
fattoreScalaX=larghezza/((float)xMax-xMin);
fattoreScalaY=altezza/((float)yMax-yMin);