import java.io.*;

public class Ejercicio4
{
  public static void main(String[] args)
  {
    double  x, res;
    double a, b, c;
     
    PrintStream fs = System.out;

    fs.print("Introduzca el valor de a: ");
    a = Leer.datoDouble();
    fs.print("Introduzca el valor de b: ");
    b = Leer.datoDouble();
    fs.print("Introduzca el valor de c: ");
    c = Leer.datoDouble();
    fs.print("Introduzca el valor de x: ");
    x = Leer.datoDouble();

    CEcuacion ec1 = new CEcuacion(a, b, c);

    res = ec1.valorEcuacion(x);
    fs.println("Para x = " + x + ", ax^5 - bx^3 + cx - 7  =  " + res);
  }
}
