<?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=289328&amp;view=findpost&amp;p=2444578</guid>
        <pubDate>Tue, 08 Dec 2009 21:51:24 +0000</pubDate>
        <title>Floating point overflow</title>
        <link>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444578</link>
        <description><![CDATA[FasterHarder: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=289328&view=findpost&p=2444575'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>volvo877 &#064; <time class="tag-quote__quoted-time" datetime="2009-12-09T00:49:37+03:00">08.12.09, 21:49</time></span><div class='quote '>используй System.Real </div></div><br>
ох, точно&#33;...ну и я ламер конечно...]]></description>
        <author>FasterHarder</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444575</guid>
        <pubDate>Tue, 08 Dec 2009 21:49:37 +0000</pubDate>
        <title>Floating point overflow</title>
        <link>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444575</link>
        <description><![CDATA[volvo877: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=289328&view=findpost&p=2444571'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>FasterHarder &#064; <time class="tag-quote__quoted-time" datetime="2009-12-08T21:43:49+00:00">08.12.09, 21:43</time></span><div class='quote '>но тогда перекрыт получается real &quot;навсегда&quot;....</div></div>Чего ж &quot;потерян&quot;? Я не удалил описание типа, я просто его перекрыл. Надо Real (хотя зачем тебе при использовании сопроцессора этот тормоз - непонятно) используй System.Real]]></description>
        <author>volvo877</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444571</guid>
        <pubDate>Tue, 08 Dec 2009 21:43:49 +0000</pubDate>
        <title>Floating point overflow</title>
        <link>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444571</link>
        <description><![CDATA[FasterHarder: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=289328&view=findpost&p=2444554'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>volvo877 &#064; <time class="tag-quote__quoted-time" datetime="2009-12-08T21:09:52+00:00">08.12.09, 21:09</time></span><div class='quote '>где подразумевался real теперь подразумевается Extended... </div></div><br>
а, понятно..вот для чего...<br>
но тогда перекрыт получается real &quot;навсегда&quot;....<br>
в общем, ладно, понятно, какие это дает преимущества...(недостатки вроде тоже есть...может я и ошибаюсь конечно)...]]></description>
        <author>FasterHarder</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444554</guid>
        <pubDate>Tue, 08 Dec 2009 21:09:52 +0000</pubDate>
        <title>Floating point overflow</title>
        <link>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444554</link>
        <description><![CDATA[volvo877: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=289328&view=findpost&p=2444539'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>FasterHarder &#064; <time class="tag-quote__quoted-time" datetime="2009-12-08T20:44:58+00:00">08.12.09, 20:44</time></span><div class='quote '>почему нельзя просто прописать :</div></div>Везде, где встречается ниже по тексту Real, я тоже должен выискивать, и заменять на Extended? Спасибо, я лучше воспользуюсь возможностью, которую язык мне предоставляет, и буду уверен, что <strong class='tag-b'>везде</strong>, где подразумевался real теперь подразумевается Extended...]]></description>
        <author>volvo877</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444539</guid>
        <pubDate>Tue, 08 Dec 2009 20:44:58 +0000</pubDate>
        <title>Floating point overflow</title>
        <link>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444539</link>
        <description><![CDATA[FasterHarder: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=289328&view=findpost&p=2444354'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>volvo877 &#064; <time class="tag-quote__quoted-time" datetime="2009-12-08T17:08:16+00:00">08.12.09, 17:08</time></span><div class='quote '>type real = extended; { &lt;--- Делай два }</div></div><br>
я конечно может не понимаю чего то (скорее всего так и есть), но зачем один встроенныи тип заменять другим?..<br>
почему нельзя просто прописать :<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">var</div><div class="code_line">&nbsp;&nbsp; x : extended;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>FasterHarder</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444366</guid>
        <pubDate>Tue, 08 Dec 2009 17:18:48 +0000</pubDate>
        <title>Floating point overflow</title>
        <link>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444366</link>
        <description><![CDATA[nigvil: хммм. я понял. Странно, что y5 такое большое получается....<br><br>да они там в районе десятые - сотые. а тут тысячи...дела блин. буду смотреть.]]></description>
        <author>nigvil</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444362</guid>
        <pubDate>Tue, 08 Dec 2009 17:17:13 +0000</pubDate>
        <title>Floating point overflow</title>
        <link>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444362</link>
        <description><![CDATA[volvo877: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=289328&view=findpost&p=2444358'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>nigvil &#064; <time class="tag-quote__quoted-time" datetime="2009-12-08T17:13:27+00:00">08.12.09, 17:13</time></span><div class='quote '>Я попробовал изменить тип Y5 - не помогло. </div></div>А чему оно должно помочь? Ты не понял, значение помещается в LongInt, но ведь PutPixel получает Integer, вот тут, при преобразовании LongInt -&gt; Integer у тебя и происходит ошибка. Ты не ответил на вопрос: У тебя размер экрана = 640 X 480. Как ты собираешься выводить точку, Y-координата которой зашкаливает за 32000? <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2009-12-08T17:18:03+00:00">08.12.09, 17:18</time></span></span><br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=289328&view=findpost&p=2444358'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>nigvil &#064; <time class="tag-quote__quoted-time" datetime="2009-12-08T17:13:27+00:00">08.12.09, 17:13</time></span><div class='quote '>А что значения Y5 такие большие получаются?</div></div>Хм... Ну, ты же их вычисляешь, тебе лучше знать, какие они должны получаться...]]></description>
        <author>volvo877</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444358</guid>
        <pubDate>Tue, 08 Dec 2009 17:13:27 +0000</pubDate>
        <title>Floating point overflow</title>
        <link>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444358</link>
        <description><![CDATA[nigvil: Я попробовал изменить тип Y5  - не помогло.<br>А что значения Y5 такие большие получаются?]]></description>
        <author>nigvil</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444354</guid>
        <pubDate>Tue, 08 Dec 2009 17:08:16 +0000</pubDate>
        <title>Floating point overflow</title>
        <link>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444354</link>
        <description><![CDATA[volvo877: Ну, допустим, уберешь ты ошибку с переполнением (для этого достаточно сделать вот так:<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">{$N+} { &#60;--- Делай раз }</div><div class="code_line">Program TForm1;</div><div class="code_line">uses Graph;</div><div class="code_line">type real = extended; { &#60;--- Делай два }</div><div class="code_line">var M1,V1,b,V0:real;</div><div class="code_line">i1,DR,MO,d:integer;</div><div class="code_line">{ ... &nbsp;все остальное - что и было }</div></ol></div></div></div></div>), но у тебя же тут же вылетит другая ошибка:<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">PutPixel(t4,y5,6); { &#60;--- вот тут, ошибка вылета за границы }</div><div class="code_line">writeln(out1,f1/0.13,&#39; &#39;,Y[2]*0.13);</div></ol></div></div></div></div>, у тебя ж значения Y5 в Integer не помещаются, как ты собрался отрисовывать-то их?]]></description>
        <author>volvo877</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444306</guid>
        <pubDate>Tue, 08 Dec 2009 16:31:32 +0000</pubDate>
        <title>Floating point overflow</title>
        <link>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444306</link>
        <description><![CDATA[nigvil: привожу. <br>
<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">Program TForm1;</div><div class="code_line">uses Graph;</div><div class="code_line">var M1,V1,b,V0:real;</div><div class="code_line">&nbsp;&nbsp; &nbsp;i1,DR,MO,d:integer;</div><div class="code_line">&nbsp;&nbsp; &nbsp;h,t,M,a,J,z : real;</div><div class="code_line">&nbsp;&nbsp; &nbsp;TK,TN,NS,t2,y4,t5,f1 : real;</div><div class="code_line">&nbsp;&nbsp; &nbsp;N,JJ,i,NSS,t4,y3,t6,y5,y6,y7,Gr,x1,u,f11 : longint;</div><div class="code_line">&nbsp;&nbsp; &nbsp;Ns1,t1,y1,t3,y2:string;</div><div class="code_line">&nbsp;&nbsp; &nbsp;out1:text;</div><div class="code_line">&nbsp;&nbsp; &nbsp;y,py,k1,k2,k3,k4,yy : array[0..7] of real;</div><div class="code_line">&nbsp;&nbsp; &nbsp;UM,L,F2,V2,MS,Ms1:real;</div><div class="code_line">&nbsp;&nbsp; &nbsp;dL,C,Fupr,TT,Fk,Ur,Up,Ud,U2,Uust,ust,Id,Iu,eps:real;</div><div class="code_line">Procedure DERY(VAR T1:real);</div><div class="code_line">begin</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;f1:=(3333333-(33333333*Y[2]*0.13))*0.13;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PY[1]:=Y[2];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PY[2]:=(((f1)-300000*0.13)/J);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;end;</div><div class="code_line">&nbsp;&nbsp; &nbsp; if f1&#62;300000*0.13 then f1:=300000*0.13;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;end;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;{M1:=M*sqr(arctan(a*6)*(1-Y[2]/V0)/(1-b*Y[2]/V0))}</div><div class="code_line">&nbsp;</div><div class="code_line">end;</div><div class="code_line">BEGIN</div><div class="code_line">assign(out1,&#39;d:\out1.txt&#39;);</div><div class="code_line">rewrite(out1);</div><div class="code_line">&nbsp;&nbsp; &nbsp;Dr:=detect;</div><div class="code_line">&nbsp;&nbsp; &nbsp;InitGraph(Dr,Mo,&#39;&#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp;setGraphMode(2);</div><div class="code_line">&nbsp;&nbsp; &nbsp;setBKcolor(15);</div><div class="code_line">&nbsp;&nbsp; &nbsp; Write(&#39;Graph/Table-0/1: &#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp;Readln(Gr);</div><div class="code_line">&nbsp;&nbsp; &nbsp;ust:=5;</div><div class="code_line">&nbsp;&nbsp; &nbsp;Iu:=8;</div><div class="code_line">&nbsp;&nbsp; &nbsp;d:=0;</div><div class="code_line">&nbsp;&nbsp; &nbsp;Fupr:=0;</div><div class="code_line">&nbsp;&nbsp; &nbsp;UM:=80;</div><div class="code_line">&nbsp;&nbsp; &nbsp;L:=5;</div><div class="code_line">&nbsp;&nbsp; &nbsp;V0:=0.077;</div><div class="code_line">&nbsp;&nbsp; &nbsp;V1:=0;</div><div class="code_line">&nbsp;&nbsp; &nbsp;MS:=1000;</div><div class="code_line">&nbsp;&nbsp; &nbsp;M:=33600;</div><div class="code_line">&nbsp;&nbsp; &nbsp;J:=1000;</div><div class="code_line">&nbsp;&nbsp; &nbsp;a:=0.5;</div><div class="code_line">&nbsp;&nbsp; &nbsp;Y[1]:=0;</div><div class="code_line">&nbsp;&nbsp; &nbsp;y[2]:=0;</div><div class="code_line">&nbsp;&nbsp; &nbsp;b:=0.93;</div><div class="code_line">&nbsp;&nbsp; &nbsp;y5:=0;</div><div class="code_line">&nbsp;&nbsp; &nbsp;t6:=3;</div><div class="code_line">&nbsp;&nbsp; &nbsp;TN:=0;</div><div class="code_line">&nbsp;&nbsp; &nbsp;TK:=2;</div><div class="code_line">&nbsp;&nbsp; &nbsp;h:=0.01;</div><div class="code_line">&nbsp;&nbsp; &nbsp;N:=2;</div><div class="code_line">&nbsp;&nbsp; &nbsp;T:=TN;</div><div class="code_line">&nbsp;&nbsp; &nbsp;TT:=0;</div><div class="code_line">&nbsp;&nbsp; &nbsp;NS:=1+(TK-TN)/h;</div><div class="code_line">&nbsp;&nbsp; &nbsp;NSS:=round(NS);</div><div class="code_line">&nbsp;&nbsp; &nbsp;FOR JJ:=1 TO NSS do</div><div class="code_line">&nbsp;&nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;DERY(t);</div><div class="code_line">&nbsp;&nbsp; &nbsp; {t4:=round(t*30);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;y5:=round(-Y[2]*1); { &nbsp;Y[2] &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;y5:=y5+300;</div><div class="code_line">&nbsp;&nbsp; &nbsp; { f11:=round(f1); }</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;If Gr=0 then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;begin</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; { &nbsp;PutPixel(f11,y5,6); }</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; { &nbsp;writeln(out1,f1,&#39; &#39;,Y[2]*0.13); }</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; PutPixel(t4,y5,6);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; writeln(out1,f1/0.13,&#39; &#39;,Y[2]*0.13);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;end else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;FOR i:=1 TO N do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;K1[i]:=PY[i]*h;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;YY[i]:=Y[i]+K1[i]/2;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;end;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;T:=T+h/2;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;DERY(T);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;T:=T-h/2;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;FOR i:=1 TO N do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;K2[i]:= PY[i]*h;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;YY[i]:= Y[i]+K2[i]/2;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;end;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;T:=T+h/2;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DERY(T);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;T:=T-h/2;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FOR i:=1 TO N do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; K3[i]:=PY[i]*h;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; YY[i]:=Y[i]+K3[i];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; T:=T+h;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DERY(T);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; T:=T-h;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FOR i:=1 TO N do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; K4[i]:=PY[i]*h;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Y[i]:=Y[i]+(K1[i]+2*K2[i]+2*K3[i]+K4[i])/6;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; T:=T+h;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TT:=TT+h;</div><div class="code_line">end;</div><div class="code_line">&nbsp;&nbsp; &nbsp; readln;</div><div class="code_line">&nbsp;&nbsp; &nbsp; CloseGraph;</div><div class="code_line">end.</div></ol></div></div></div></div><br>
<br>
<strong class='tag-b'><span class="tag-color tag-color-named" data-value="red" style="color: red">Кнопочку CODE=pas видишь? Это и есть подсветка синтаксиса...</span></strong>]]></description>
        <author>nigvil</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444296</guid>
        <pubDate>Tue, 08 Dec 2009 16:22:20 +0000</pubDate>
        <title>Floating point overflow</title>
        <link>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444296</link>
        <description><![CDATA[volvo877: Приводи код полностью. Вместе со всеми исходными данными, чтобы иметь возможность повторить ошибку.]]></description>
        <author>volvo877</author>
        <category>Pascal</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444279</guid>
        <pubDate>Tue, 08 Dec 2009 15:49:33 +0000</pubDate>
        <title>Floating point overflow</title>
        <link>https://forum.sources.ru/index.php?showtopic=289328&amp;view=findpost&amp;p=2444279</link>
        <description><![CDATA[nigvil: Добрый день. Такая вот проблема при написании программы в Borland Pascal 7.0. <br>
Необходимо решить дифференциальное уравнение и затем вывести решение в виде графика. Однако При запуске программы появляется такая ошибка: &quot;Floating point overflow&quot;. Я догадываюсь, что это что-то про плавающую запятую и что, видимо, там перевес или типо этого но как устранить это - я не знаю. Ниже привожу выдержку из программы:<br>
<br>
begin<br>
      begin<br>
          f1:=(3333333-(33333333*Y[2]*0.13))*0.13;<br>
          PY[1]:=Y[2];<br>
          PY[2]:=(((f1)-300000*0.13)/J);<br>
      end;<br>
     if f1&gt;300000*0.13 then f1:=300000*0.13;<br>
<br>
    end;<br>
<br>
Причем ругается на f1. Пробывал уменьшать само f1 умноженнием не на 0.13, а на 0.013. Все хорошо. Только вот мне нужно именно такое значение функции при таком большом значении аргумента :)<br>
<br>
<br>
И еще такой вопрос в тему: есть ли возможность в паскале копировать графики? мне необходимо как-то их вытянуть в документ Word&#39;a.<br>
<br>
<br>
<br>
<br>
Подскажите, каковы пути решения проблемы.]]></description>
        <author>nigvil</author>
        <category>Pascal</category>
      </item>
	
      </channel>
      </rss>
	