<?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=14935&amp;view=findpost&amp;p=125461</guid>
        <pubDate>Sun, 16 Feb 2003 10:22:31 +0000</pubDate>
        <title>Аналитическая геометрия</title>
        <link>https://forum.sources.ru/index.php?showtopic=14935&amp;view=findpost&amp;p=125461</link>
        <description><![CDATA[tserega: Или так:<br>S=abc/4R<br>S=Sqrt(p(p-a)(p-b)(p-c))<br>p=(a+b+c)/2<br>Найдешь радиус, а остальное - на твой вкус ;D]]></description>
        <author>tserega</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=14935&amp;view=findpost&amp;p=125460</guid>
        <pubDate>Sun, 16 Feb 2003 04:59:59 +0000</pubDate>
        <title>Аналитическая геометрия</title>
        <link>https://forum.sources.ru/index.php?showtopic=14935&amp;view=findpost&amp;p=125460</link>
        <description><![CDATA[Testudo: Все делаеться гораздо проще.<br>Есть система уравнений:<br>(x1-x)^2+(y1-y)^2=r^2;<br>(x2-x)^2+(y2-y)^2=r^2;<br>(x3-x)^2+(y3-y)^2=r^2;<br>Три уравнени, три неизвестных - решить можно... ;D]]></description>
        <author>Testudo</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=14935&amp;view=findpost&amp;p=125459</guid>
        <pubDate>Wed, 12 Feb 2003 12:29:06 +0000</pubDate>
        <title>Аналитическая геометрия</title>
        <link>https://forum.sources.ru/index.php?showtopic=14935&amp;view=findpost&amp;p=125459</link>
        <description><![CDATA[plan: Вообще, три точки, не лежащие на одной прямой – это треугольник. А около любого треугольника можно описать окружность!!(центр - &nbsp;точка пересечения серединных перпендикуляров)!<br>Где у тебя {*} – там проверяется, лежат ли точки на одной прямой.<br>Доказательство формул можно получить, если рассмотреть какие-то вектора (уравнение линии, координата середины отрезка, координата пересечения прямых – в данном случаи серединных перпендикуляров , т. е. центр и т.д.). Я точно всё это не помню, поэтому нужно смотреть в литературе.<br>П.С. Полистай учебник геометрии за 9 класс... <br>]]></description>
        <author>plan</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=14935&amp;view=findpost&amp;p=125458</guid>
        <pubDate>Tue, 11 Feb 2003 18:45:49 +0000</pubDate>
        <title>Аналитическая геометрия</title>
        <link>https://forum.sources.ru/index.php?showtopic=14935&amp;view=findpost&amp;p=125458</link>
        <description><![CDATA[_DaniK_: Вот нашел на просторах http://www.programmersheaven.com/ программу, которая вычисляет центр и радиус окружности, проходящей через три точки(не лежащие на одной линии).  <br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">{================================================}</div><div class="code_line">{ &nbsp; &nbsp; This program is taken from the book, &nbsp; &nbsp; &nbsp; }</div><div class="code_line">{ &quot;PASCAL programs in science and engineering&quot; &nbsp; }</div><div class="code_line">{ &nbsp; &nbsp;by Jules H. Gilder &amp; J. Scott Barrus &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">{ &nbsp; Published by, HAYDEN ISBN 0-8104-6265-6 &nbsp; &nbsp; &nbsp;}</div><div class="code_line">{================================================}</div><div class="code_line">{ Title: &nbsp;Circle Finder &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">{ Program Summary: Program will find the center &nbsp;}</div><div class="code_line">{ and radius of a circle that is formed by three }</div><div class="code_line">{ points not in a straight line. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div class="code_line">{================================================}</div><div class="code_line">&nbsp;</div><div class="code_line">Program Circle_Finder;</div><div class="code_line">&nbsp;uses Crt;</div><div class="code_line">var</div><div class="code_line">&nbsp;&nbsp; cont &nbsp; &nbsp; : Char;</div><div class="code_line">&nbsp;&nbsp; &nbsp;X1,X2,X3, &nbsp; &nbsp; Y1,Y2,Y3, &nbsp; &nbsp; &nbsp;Part1, &nbsp; &nbsp;Part2, &nbsp; &nbsp;Part3, &nbsp; &nbsp;Part4, &nbsp; &nbsp;X,Y, &nbsp; &nbsp;Radius &nbsp; : Real;</div><div class="code_line">&nbsp;</div><div class="code_line">Procedure Title;</div><div class="code_line">&nbsp;&nbsp; begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Clrscr;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Writeln(&#39;Circle Finder&#39;); &nbsp; &nbsp; &nbsp; &nbsp;Writeln;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Writeln(&#39;This program will find the center and&#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Writeln(&#39;radius of a circle that is determined&#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Writeln(&#39;by any three points in a plane that &#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Writeln(&#39;does not form a straight line.&#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Writeln;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Writeln(&#39;Note: For all entries that require&#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Writeln(&#39; &nbsp; &nbsp; &nbsp;data entries (x,y); separate &#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Writeln(&#39; &nbsp; &nbsp; &nbsp;all data with a space.&#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Writeln;</div><div class="code_line">&nbsp;&nbsp; end; &nbsp;{ Title }</div><div class="code_line">&nbsp;</div><div class="code_line">Procedure Input;</div><div class="code_line">&nbsp;&nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; Write(&#39;Enter first point &nbsp;(X,Y): &nbsp; &#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; Readln(X1,Y1);</div><div class="code_line">&nbsp;&nbsp; &nbsp; Write(&#39;Enter second point (X,Y): &nbsp; &#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; Readln(X2,Y2);</div><div class="code_line">&nbsp;&nbsp; &nbsp; Write(&#39;Enter third point &nbsp;(X,Y): &nbsp; &#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; Readln(X3,Y3);</div><div class="code_line">&nbsp;&nbsp; &nbsp; Writeln;Writeln;Writeln;</div><div class="code_line">&nbsp;&nbsp;end;</div><div class="code_line">&nbsp;</div><div class="code_line">Procedure Find;</div><div class="code_line">&nbsp;&nbsp; begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; Part1 := ((X2-X1) * (X2+X1) + (Y2-Y1) * (Y2 + Y1)) / (2.0 * (X2-X1));</div><div class="code_line">&nbsp;&nbsp; &nbsp; Part2 := ((X3-X1) * (X3+X1) + (Y3-Y1) * (Y3 + Y1)) / (2.0 * (X3-X1));</div><div class="code_line">&nbsp;&nbsp; &nbsp; Part3 := (Y2 - Y1) / (X2 - X1);</div><div class="code_line">&nbsp;&nbsp; &nbsp; Part4 := (Y3 - Y1) / (X3 - X1);</div><div class="code_line">{*} &nbsp; If (Part3=Part4)</div><div class="code_line">{*} &nbsp; &nbsp;then begin</div><div class="code_line">{*} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; writeln(&#39;three points in a straight line!!! Plz, enter another three points!!!&#39;);</div><div class="code_line">{*} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;</div><div class="code_line">{*} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end;</div><div class="code_line">&nbsp;&nbsp; &nbsp; Y := (Part2 - Part1) / (Part4 - Part3);</div><div class="code_line">&nbsp;&nbsp; &nbsp; X := Part2 - Part4 * Y;</div><div class="code_line">&nbsp;&nbsp; &nbsp; Radius := SQRT (SQR (X3 - X) + SQR (Y3 - Y));</div><div class="code_line">&nbsp;&nbsp; end;</div><div class="code_line">&nbsp;</div><div class="code_line">Procedure Print1;</div><div class="code_line">&nbsp;&nbsp; begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;Writeln(&#39;The circle defined by the following&#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;Writeln(&#39;three points:&#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;Writeln;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;Writeln(&#39; X1 = &#39;,X1:7:4,&#39; Y1 = &#39;,Y1:7:4);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;Writeln(&#39; X2 = &#39;,X2:7:4,&#39; Y2 = &#39;,Y2:7:4);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;Writeln(&#39; X3 = &#39;,X3:7:4,&#39; Y3 = &#39;,Y3:7:4);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;Writeln;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;Writeln(&#39;has a radius = &#39;,Radius:4:4);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;Writeln; Radius:=0;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;Writeln(&#39;at a center located at:&#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;Writeln;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;Writeln(&#39; X = &#39;,X:4:4,&#39; &nbsp; &nbsp;Y = &#39;,Y:4:4); x:=0; y:=0;</div><div class="code_line">&nbsp;&nbsp; end; { Print1 }</div><div class="code_line">&nbsp;</div><div class="code_line">begin &nbsp;{ Main }</div><div class="code_line">&nbsp;&nbsp;Repeat</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Title;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Input;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Find;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Print1;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Writeln;Writeln;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Write(&#39;Do you have another 3 points? (Y/N)&#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Readln(cont);</div><div class="code_line">&nbsp;&nbsp; Until cont in [&#39;n&#39;,&#39;N&#39;];</div><div class="code_line">end.</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
1. Объясните мне пожалуйста, КАК выведены формулы нахождения координат центра окружности и её радиуса, кторые исп. в процедуре Find  ???<br>
{*} - это моё вкрапление.<br>
2. Как вообще можно провести окружность через три точки, зная &#33;только&#33; их координаты ???<br>
Помогите&#33;&#33; пожалуйста&#33;&#33;]]></description>
        <author>_DaniK_</author>
        <category>Pascal</category>
      </item>
	
      </channel>
      </rss>
	