Так, со схемой Горнера разобрался)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lab2
{
class Program
{
static float PolinomGorner(float[] coefficients, float x)
{
int n = coefficients.Length - 1;
float y = coefficients[n];
for (int i = n - 1; i >= 0; i--)
{
y = x * y + coefficients[i];
}
return y;
}
static void Main(string[] args)
{
//М(х)= сумма(аi*x^i)
//коеф задані
float[] coefficients = { 0, 1, 3, 2, 4, 6};
int x = 2;
double PolGorner = PolinomGorner(coefficients, x);
Console.WriteLine("Polinom Gornera:" + PolGorner);
Console.ReadKey();
}
}
}