<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9434&amp;view=findpost&amp;p=91699</guid>
        <pubDate>Mon, 21 Apr 2003 02:01:16 +0000</pubDate>
        <title>Теорема Виета</title>
        <link>https://forum.sources.ru/index.php?showtopic=9434&amp;view=findpost&amp;p=91699</link>
        <description><![CDATA[True_Hart: Всем спасибо Я вроде бы сам догодался....<br>функция возвращает значение коофицента при x^(NxArg1-i) используя массив с корнями <br>уравнения (x-X[0])(x-X[1])....(x-X[NxArg]), если не сложно напишите что вы думаете о таком решении......<br>double KoofPolynom (int i, int NxArg1, double X[])<br> &nbsp; &nbsp; &nbsp;{<br> &nbsp; &nbsp;int C[255];<br> &nbsp; &nbsp;int Proiz=1;<br> &nbsp; &nbsp;double Sum=0;<br> &nbsp; &nbsp;for (int f=0; f&lt;=NxArg1-1; f++) C[f]=f;<br> &nbsp; &nbsp;while (C[0]!=NxArg1-i)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br><br> &nbsp; &nbsp; &nbsp; &nbsp;Proiz=1;<br> &nbsp; &nbsp; &nbsp; &nbsp;if(i==0) //i==0 ?? ?[i]=X1<br> &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (int m=0; m&lt;=NxArg1-1; m++) Sum += X[m];<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Sum*=pow((-1), i+1);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return Sum;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br> &nbsp; &nbsp; &nbsp; &nbsp;for (int m=0; m&lt;=i; m++) Proiz *= X[C[m]];<br><br> &nbsp; &nbsp; &nbsp; &nbsp;Sum+=Proiz;<br> &nbsp; &nbsp; &nbsp; &nbsp;C[i]++; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Начиная с этой строки цикл генерирует последовательность<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//наподобе 0123 0124 0134 0234 1234<br> &nbsp; &nbsp; &nbsp; &nbsp;if((C[0]==NxArg1-i-1)&amp;&amp;(C[i]==NxArg1))break;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for(int w=0; w&lt;=i; w++) &nbsp; &nbsp; &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br> &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;if(C[i-w]==NxArg1-w)<br> &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;C[i-w-1]++;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for(int j=w; j&gt;=0; j--)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;C[i-j]=C[i-j-1]+1;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br> &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;}<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br> &nbsp; &nbsp;Sum*=pow((-1), i+1);<br> &nbsp; &nbsp;return Sum;<br> &nbsp; &nbsp;}<br>]]></description>
        <author>True_Hart</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9434&amp;view=findpost&amp;p=91698</guid>
        <pubDate>Mon, 21 Apr 2003 01:47:19 +0000</pubDate>
        <title>Теорема Виета</title>
        <link>https://forum.sources.ru/index.php?showtopic=9434&amp;view=findpost&amp;p=91698</link>
        <description><![CDATA[True_Hart: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>shadeofgray, 18.04.03, 09:27:47</span><div class='quote '><br>если надо именно вычислить значения коэффициентов, то посмотри<br>http://alglib.dore.ru/opser/index.html#byroot</div></div><br>Там алгоритм ошибочный... Сего помощью можно вычеслить верно только свободный член...]]></description>
        <author>True_Hart</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9434&amp;view=findpost&amp;p=91697</guid>
        <pubDate>Fri, 18 Apr 2003 05:27:47 +0000</pubDate>
        <title>Теорема Виета</title>
        <link>https://forum.sources.ru/index.php?showtopic=9434&amp;view=findpost&amp;p=91697</link>
        <description><![CDATA[shadeofgray: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>True_Hart, 18.04.03, 01:27:59</span><div class='quote '>Подскажите пожалуйста как можно програмно реализовать вычисление <br>коофицентов по теореме Виета.</div></div><br>если надо именно вычислить значения коэффициентов, то посмотри<br>http://alglib.dore.ru/opser/index.html#byroot]]></description>
        <author>shadeofgray</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9434&amp;view=findpost&amp;p=91696</guid>
        <pubDate>Fri, 18 Apr 2003 05:18:28 +0000</pubDate>
        <title>Теорема Виета</title>
        <link>https://forum.sources.ru/index.php?showtopic=9434&amp;view=findpost&amp;p=91696</link>
        <description><![CDATA[GrAnd: задача просто сводится к разложению <br>(x-x<sub class='tag-sub'>1</sub>)(x-x<sub class='tag-sub'>2</sub>)...(x-x<sub class='tag-sub'>n</sub>). И Вычислению всех коэфф. при всех степенях x]]></description>
        <author>GrAnd</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9434&amp;view=findpost&amp;p=91695</guid>
        <pubDate>Fri, 18 Apr 2003 04:47:56 +0000</pubDate>
        <title>Теорема Виета</title>
        <link>https://forum.sources.ru/index.php?showtopic=9434&amp;view=findpost&amp;p=91695</link>
        <description><![CDATA[progman: я институт заканчивал уж 4 года назад, а т.Виета была на 2м курсе напомни плиз ее мат часть (формулу) и поконкретнее задачу опиши, а то вводных данных маловато]]></description>
        <author>progman</author>
        <category>Алгоритмы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=9434&amp;view=findpost&amp;p=91694</guid>
        <pubDate>Thu, 17 Apr 2003 21:27:59 +0000</pubDate>
        <title>Теорема Виета</title>
        <link>https://forum.sources.ru/index.php?showtopic=9434&amp;view=findpost&amp;p=91694</link>
        <description><![CDATA[True_Hart: Подскажите пожалуйста как можно програмно реализовать вычисление <br>коофицентов по теореме Виета.<br>На пример: даны x1,x2,x3...xn необходимо вычислить <br>коофиценты при x^0 x^1 x^2... x^n, если можно приведите <br>пожалуйста пример программы]]></description>
        <author>True_Hart</author>
        <category>Алгоритмы</category>
      </item>
	
      </channel>
      </rss>
	