0

Construct a table of values ​​for the function f (x) = tg (x) on the interval [0, pi / 4] with the number of partitions of m = 10.

namespace lab_6
{
    class Program
    {
        static void Main(string[] args)
        {            double x, f = 0;
            double m = 10;
            double z = (Math.PI / 4) / m;
            for (x = 0; x <= Math.PI / 4; x += z)
            {   f = Math.Tan(x);
                Console.WriteLine("f={0:f}", f);
                Console.ReadKey();
            }
        }
    }
}
zxxrc19
  • 1
  • 2

0 Answers0