Esempio n. 1
0
 public static void Table(FunTwo F, double a, double start, double end, double step)
 {
     Console.WriteLine($"|------a-----|------x-----|----------F(x)--------|");
     for (double x = start; x < end; x += step)
     {
         Console.WriteLine($"| {a,10} | {x,10} | {F(a,x),-20} |");
     }
     Console.WriteLine(new String('-', 50));
 }
Esempio n. 2
0
 public static void Table(FunTwo F, double a, double x)
 {
     Console.WriteLine("------ X ----- Y ----");
     while (a <= x)
     {
         Console.WriteLine("| {0,8:0.000} | {1,8:0.000 |}", a, F(a, x));
         a += 1;
     }
     Console.WriteLine("---------------------\n");
 }