<?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=304006&amp;view=findpost&amp;p=2606352</guid>
        <pubDate>Thu, 27 May 2010 20:04:33 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2606352</link>
        <description><![CDATA[volvo877: А Вы не могли бы перестать тему превращать в мусорку? Изначально речь была про 32-битные компиляторы, теперь оказалось что это 16-бит. Ладно... Потом понадобилось дифференцирование (в FAQ-е самой посмотреть нельзя, правда? Удобнее, когда за тебя ссылку найдут)... Теперь оказывается, надо еще и скриншот снять.<br>
<br>
В общем, вот ссылка: <a class='tag-url' href='http://forum.sources.ru/index.php?showtopic=191065&view=findpost&p=1604071' target='_blank'>Скриншот проги (сообщение #1604071)</a><br>
Там рассказано, как и что делать.<br>
<br>
А эту тему я закрываю... Не закрою сейчас - через неделю здесь будет еще в 2 раза больше постов.]]></description>
        <author>volvo877</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2606339</guid>
        <pubDate>Thu, 27 May 2010 19:53:17 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2606339</link>
        <description><![CDATA[Prutvel: не могли бы вы подсказать еще одну вещь - как из паскаля картинку распечатывать? Когда нажимаем ctrl+F9 видим график, а принт скрином он не берется?)]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2605429</guid>
        <pubDate>Thu, 27 May 2010 05:00:53 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2605429</link>
        <description><![CDATA[Prutvel: спасибо. ;)]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2605382</guid>
        <pubDate>Wed, 26 May 2010 21:25:04 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2605382</link>
        <description><![CDATA[Polinom2686: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2605373'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-26T21:10:38+00:00">26.05.10, 21:10</time></span><div class='quote '>через массив как-то можно вывести эти точки в эксель?) </div></div><br>
Можно, в посте 61 упомянут формат CSV<br>
<br>
Почитай <a class='tag-url' href='http://ru.wikipedia.org/wiki/CSV' target='_blank'>Википедию</a><br>
<br>
Пишешь данные согласно форматы, сохраняешь файл с расширением - CSV]]></description>
        <author>Polinom2686</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2605373</guid>
        <pubDate>Wed, 26 May 2010 21:10:38 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2605373</link>
        <description><![CDATA[Prutvel: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2604290'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Light13 &#064; <time class="tag-quote__quoted-time" datetime="2010-05-26T02:50:00+00:00">26.05.10, 02:50</time></span><div class='quote '>хочется все же узнать под каким компилятором заработало?</div></div><br>
заработало в турбо паскале...А если я построила график, а через массив как-то можно вывести эти точки в эксель?)]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2605033</guid>
        <pubDate>Wed, 26 May 2010 14:14:41 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2605033</link>
        <description><![CDATA[Prutvel: Спасибо&#33;]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2604366</guid>
        <pubDate>Wed, 26 May 2010 06:14:19 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2604366</link>
        <description><![CDATA[Булат Шакиров: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2603983'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-25T15:50:30+00:00">25.05.10, 15:50</time></span><div class='quote '>дифференцирование в паскале сделать</div></div><br>
<a class='tag-url' href='http://forum.sources.ru/index.php?showtopic=51046&view=findpost&p=569392' target='_blank'>Неотёсанные топики (сообщение #569392)</a>]]></description>
        <author>Булат Шакиров</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2604290</guid>
        <pubDate>Wed, 26 May 2010 02:50:00 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2604290</link>
        <description><![CDATA[Light13: хочется все же узнать под каким компилятором заработало?<br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2603973'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-25T15:35:36+00:00">25.05.10, 15:35</time></span><div class='quote '>как точки этого графика перекинуть в эксель</div></div><br>
сохранить в текстовый файл с разделителями <strong class='tag-b'>.CSV</strong><br>
или курить Ole Automation сервер Excel<br>
<br>
во втором случае лучше юзать Free Pascal]]></description>
        <author>Light13</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2603983</guid>
        <pubDate>Tue, 25 May 2010 15:50:30 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2603983</link>
        <description><![CDATA[Prutvel: Да и еще - если не затруднит, подскажите, пожалуйста, как лучше дифференцирование в паскале сделать: надо напряжение через ток найти:<br><br>U=L*(dI/dt)<br><br>я вот думала по точкам, а как их задавать-то - то есть прямо массив делать типа<br>for k:=1 to N do<br><br>U(k):=L*I(t(k)-I(t(k)-dt)/dt)<br><br>как это правильно сделать?)]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2603973</guid>
        <pubDate>Tue, 25 May 2010 15:35:36 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2603973</link>
        <description><![CDATA[Prutvel: Спасибо большое ВСЕМ, кто принял участие в моем вопросе&#33; График тока вроде бы получился. Не могли бы вы подсказать, как точки этого графика перекинуть в эксель?]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2603492</guid>
        <pubDate>Tue, 25 May 2010 08:08:53 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2603492</link>
        <description><![CDATA[Булат Шакиров: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>выводит координатную ось, и фиолетовый экран</div></div><br>
Кто выводит? Где выводит? <br>
 :blink: <br>
Предыдущая Ваша программа не должна НИЧЕГО выводить. В принципе. А новой версии Вы не предоставляете. &lt;_&lt; <br>
А уроки телепатии я в школе прогуливал. :blink:]]></description>
        <author>Булат Шакиров</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2603333</guid>
        <pubDate>Tue, 25 May 2010 06:28:47 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2603333</link>
        <description><![CDATA[Prutvel: вы мне сказали, что через trunc надо функцию задавать. Паскаль не строит такой график - выводит координатную ось, и фиолетовый экран :wall:  :wall: ПОМОГИТЕ&#33;&#33;&#33;&#33;&#33;]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2603012</guid>
        <pubDate>Mon, 24 May 2010 16:45:30 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2603012</link>
        <description><![CDATA[Romtek: Прочти заново предыдущую страницу темы и попытайся написать сама, добавляя функциональность по малу.<br>Суп ведь также варится, поочерёдно добавляя продукты.]]></description>
        <author>Romtek</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2603000</guid>
        <pubDate>Mon, 24 May 2010 16:23:06 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2603000</link>
        <description><![CDATA[Prutvel: ну помогите&#33;&#33;&#33; пожалуйста, кто-нибудь, напишите работоспособный код. Я уже третью неделю и днем и ночью сижу :&#39;(  уже всю тетрадь исписала. помогите, пожалуйста&#33;&#33;&#33;&#33;&#33; :&#39;(]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2602350</guid>
        <pubDate>Mon, 24 May 2010 05:56:58 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2602350</link>
        <description><![CDATA[Light13: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2601872'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-23T12:16:28+00:00">23.05.10, 12:16</time></span><div class='quote '>Она почти работает. </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">function FMod (a, b: double): double;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp; FMOD:= a - b * Trunc(a / b);</div><div class="code_line">end;</div><div class="code_line">&nbsp;</div><div class="code_line">Function i(t:double): Double;</div><div class="code_line">Const</div><div class="code_line">&nbsp;&nbsp;Im=0.57; L=0.1; tau=62; f1=5.37; f2=8.06; T1=186;T2=124; T3=310;</div><div class="code_line">&nbsp;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp;if fmod(t,T3)&#60;tau then</div><div class="code_line">&nbsp;&nbsp; &nbsp;i:=Im;</div><div class="code_line">&nbsp;&nbsp;if (fmod(t,T3)&#62;=tau) and (fmod(t,T3)&#60;T1) then</div><div class="code_line">&nbsp;&nbsp; &nbsp;I:=-Im;</div><div class="code_line">&nbsp;&nbsp;if (fmod(t,T3)&#62;=T1) and (fmod(t,T3)&#60;(T1+tau)) then</div><div class="code_line">&nbsp;&nbsp; &nbsp;I:=Im;</div><div class="code_line">&nbsp;&nbsp;if (fmod(t,T3)&#62;=T1+tau) and (fmod(t,T3)&#60;T3) then</div><div class="code_line">&nbsp;&nbsp; &nbsp;I:=-Im;</div><div class="code_line">end;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">var</div><div class="code_line">&nbsp;&nbsp;k,</div><div class="code_line">&nbsp;&nbsp;N:integer;</div><div class="code_line">&nbsp;&nbsp;DataTmax,</div><div class="code_line">&nbsp;&nbsp;DataTmin,</div><div class="code_line">&nbsp;&nbsp;DataImax,</div><div class="code_line">&nbsp;&nbsp;DataImin: real;</div><div class="code_line">&nbsp;&nbsp;t,</div><div class="code_line">&nbsp;&nbsp;i1: array[0..300] of real;</div><div class="code_line">&nbsp;</div><div class="code_line">begin</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp;DataTmax:=t[0];</div><div class="code_line">&nbsp;&nbsp;DataTmin:=t[0];</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp;for k:=1 to N do</div><div class="code_line">&nbsp;&nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;if t[k]&#62;DataTmax then DataTmax:=t[k];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;if t[k]&#60;DataTmin then DataTmin:=t[k];</div><div class="code_line">&nbsp;&nbsp; &nbsp;end;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp;DataImax:=i1[0];</div><div class="code_line">&nbsp;&nbsp;DataImin:=i1[0];</div><div class="code_line">&nbsp;&nbsp;for k:=1 to N do</div><div class="code_line">&nbsp;&nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;if i1[k]&#62;DataImax then DataImax:=i1[k];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;if i1[k]&#60;DataImin then DataImin:=i1[k];</div><div class="code_line">&nbsp;&nbsp; &nbsp;end;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;function PixelCoordT(t: Double): Integer;</div><div class="code_line">&nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;(* &nbsp;ЇаЁЎ ў«пҐ¬ Ї®«®ўЁ­г иЁаЁ­л е®«бв , зв®Ўл жҐ­ва ®бҐ© Ўл« ў жҐ­ваҐ нЄа ­  *)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;i := Round( CanvasWidth / 2.0 + t * Kt)</div><div class="code_line">&nbsp;end;</div><div class="code_line">&nbsp;</div><div class="code_line">function PixelCoordI (i: Double): Integer;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp; &nbsp;(* &nbsp;ўлзЁв Ґ¬ Ё§ Ї®«®ўЁ­л ўлб®вл е®«бв , Ё­ зҐ Ја дЁЄ Ўг¤Ґв ЇҐаҐўса­гвл¬*)</div><div class="code_line">&nbsp;&nbsp; &nbsp;i := Round( CanvasHeight / 2.0 - f(t) * Ki)</div><div class="code_line">end;</div><div class="code_line">&nbsp;</div><div class="code_line">begin</div><div class="code_line">&nbsp;</div><div class="code_line">end.</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
почему <strong class='tag-b'>PixelCoordT</strong> и <strong class='tag-b'>PixelCoordI</strong> оказались внутри основного блока программы и зачем последний begin?<br>
<br>
Вас уже просили привести полный код - этот обрезок <br>
<br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2602330'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Оззя &#064; <time class="tag-quote__quoted-time" datetime="2010-05-24T05:20:03+00:00">24.05.10, 05:20</time></span><div class='quote '>не будет работать</div></div>]]></description>
        <author>Light13</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2602330</guid>
        <pubDate>Mon, 24 May 2010 05:20:03 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2602330</link>
        <description><![CDATA[Булат Шакиров: <strong class='tag-b'>Prutvel</strong><br>
Извините, но Вы совершенно НЕ читаете того, что Вам пишут. Еще раз перечитайте посты <strong class='tag-b'>Romtek</strong>&#39;a и <strong class='tag-b'>volvo877</strong>.<br>
Внимательно&#33;<br>
Ну, не будет работать Ваш код, &quot;отрисовывающий графику&quot;. Нигде. Ни в Лазарусе, ни в FP, ни в TP.]]></description>
        <author>Булат Шакиров</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601953</guid>
        <pubDate>Sun, 23 May 2010 14:28:25 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601953</link>
        <description><![CDATA[Prutvel: function FMod (a, b: double): double;<br>
begin<br>
   FMOD:= a - b * Trunc(a / b);<br>
end;<br>
<br>
Function i(t:double): Double;<br>
Const<br>
  Im=0.57; L=0.1; tau=62; f1=5.37; f2=8.06; T1=186;T2=124; T3=310;<br>
<br>
begin<br>
  if fmod(t,T3)&lt;tau then<br>
    i:=Im;<br>
  if (fmod(t,T3)&gt;=tau) and (fmod(t,T3)&lt;T1) then<br>
    I:=-Im;<br>
  if (fmod(t,T3)&gt;=T1) and (fmod(t,T3)&lt;(T1+tau)) then<br>
    I:=Im;<br>
  if (fmod(t,T3)&gt;=T1+tau) and (fmod(t,T3)&lt;T3) then<br>
    I:=-Im;<br>
end;<br>
var k,N:integer;DataTmax,DataTmin, DataImax,DataImin: real;<br>
t,i1: array[0..300] of real;<br>
begin<br>
DataTmax:=t[0];<br>
DataTmin:=t[0];<br>
for k:=1 to N do<br>
begin<br>
if t[k]&gt;DataTmax then DataTmax:=t[k];<br>
if t[k]&lt;DataTmin then DataTmin:=t[k];<br>
end;<br>
DataImax:=i1[0];<br>
DataImin:=i1[0];<br>
for k:=1 to N do<br>
begin<br>
if i1[k]&gt;DataImax then DataImax:=i1[k];<br>
if i1[k]&lt;DataImin then DataImin:=i1[k];<br>
end;<br>
<br>
function PixelCoordT(t:double): Integer;<br>
     begin<br>
          (*  прибавляем половину ширины холста, чтобы центр осей был в центре экрана *)<br>
          i := Round( CanvasWidth / 2.0 + t * Kt)<br>
     end;<br>
     function PixelCoordI (i: Double): Integer;<br>
     begin<br>
          (*  вычитаем из половины высоты холста, иначе график будет перевёрнутым*)<br>
          i := Round( CanvasHeight / 2.0 - f(t) * Ki)<br>
     end;<br>
      begin<br>
end]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601872</guid>
        <pubDate>Sun, 23 May 2010 12:16:28 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601872</link>
        <description><![CDATA[Prutvel: вот программа. Она почти работает. Но компиллятор выводит сразу 4 ошибки на одно выражение - function <span class="tag-color tag-color-named" data-value="red" style="color: red">PixelCoordT</span>(t: Double): Integer; что делать?)]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601775</guid>
        <pubDate>Sun, 23 May 2010 09:38:26 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601775</link>
        <description><![CDATA[Prutvel: вот этот компилируется в турбо:<br><br>function FMod (a, b: real): real;<br>begin<br>   FMOD:= a - b * Trunc(a / b);<br>end;<br><br>Function i(t:real): real;<br>Const<br>  Im=0.57; L=0.1; tau=62; f1=5.37; f2=8.06; T1=186;T2=124; T3=310;<br><br>begin<br>  if fmod(t,T3)&lt;tau then<br>    i:=Im;<br>  if (fmod(t,T3)&gt;=tau) and (fmod(t,T3)&lt;T1) then<br>    I:=-Im;<br>  if (fmod(t,T3)&gt;=T1) and (fmod(t,T3)&lt;(T1+tau)) then<br>    I:=Im;<br>  if (fmod(t,T3)&gt;=T1+tau) and (fmod(t,T3)&lt;T3) then<br>    I:=-Im;<br>end;<br><br>begin<br><br>end.]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601709</guid>
        <pubDate>Sun, 23 May 2010 07:56:47 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601709</link>
        <description><![CDATA[volvo877: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2601695'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-23T07:34:16+00:00">23.05.10, 07:34</time></span><div class='quote '>в ТУРБО паскале они будут действовать??? </div></div><br>
Большая часть из того, что здесь написана будет работать и в Турбо Паскале (когда исправишь ошибки, на которые тебе уже указали и на которые указывает компилятор, разумеется). Но если тебе надо Турбо - ты так и говори, а то мечешься, как... <span class="tag-color tag-color-named" data-value="red" style="color: red">&lt;самоцензура&gt;</span>, то ей Лазарус, потом FPC, теперь TP подавай... На кой черт в Лазарусе, скажем, рисовать это все в ручную, кто-нибудь объяснит мне? Компонента Chart что, не существует? Добавить несколько линий с определенным периодом - вот тебе и график функции. Ты для себя сначала реши, что тебе надо, запутать всех постоянным изменением компиляторов, или выбрать что-то дно, и написать, наконец, работоспособный код... А то развели флуда на 50 сообщений. &quot;Это правильно? А это - правильно?&quot; Программа может быть признана правильной только тогда, когда она компилируется, запускается и делает то, что от нее требуется. Твоя программа не прошла ни один из этапов.<br>
<br>
А если прошла - то покажи в <strong class='tag-b'>нормальном виде </strong>: заархивируй и прикрепи архив к сообщению (специально добавили кнопку &quot;Обзор&quot; прямо в форму быстрого ответа) тот код, <span class="tag-color tag-color-named" data-value="red" style="color: red"><strong class='tag-b'>который у тебя компилируется</strong></span>, а не тот бред, который ты пишешь постоянно - то лишние буквы, то повторяющиеся идентификаторы, то вообще запрещенные символы в исходнике. Чтоб БЕЗ ИЗМЕНЕНИЙ (открыл присоединенный файл, нажал F9. Я больше ничего делать не хочу. Это твое задание, ты его и решай, я могу только посмотреть, правильно ли оно работает) он прошел хотя бы этап компиляции и программа хоть как-то запустилась. Потом будем продолжать. Не скомпилировался? Извини, здесь не онлайн Pascal Compiler, тебе программа пишет где ошибка - будь добра разобраться, что не так, и исправить. А пока нет такого кода - говорить больше не о чем.]]></description>
        <author>volvo877</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601704</guid>
        <pubDate>Sun, 23 May 2010 07:46:30 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601704</link>
        <description><![CDATA[Romtek: Если изменить<br>
<strong class='tag-b'>Result :=</strong><br>
на<br>
<strong class='tag-b'>FunctionName :=</strong><br>
то да. Изменения, как видишь, минимальные.]]></description>
        <author>Romtek</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601695</guid>
        <pubDate>Sun, 23 May 2010 07:34:16 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601695</link>
        <description><![CDATA[Prutvel: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2601538'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Romtek &#064; <time class="tag-quote__quoted-time" datetime="2010-05-22T20:22:28+00:00">22.05.10, 20:22</time></span><div class='quote '>Приведёнными мною набросками построения функции так и не воспользовалась.</div></div><br>
так Вы мне скажите, в ТУРБО паскале они будут действовать???]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601538</guid>
        <pubDate>Sat, 22 May 2010 20:22:28 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601538</link>
        <description><![CDATA[Romtek: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>Error: Duplicate identifier &quot;I&quot;</div></div>Компилятор сообщает где ошибки и что они означают. Следуй его указаниям. Читай документацию, справочники.<br>
<br>
<strong class='tag-b'>РеГисТР бУКв в Паскале не имеет значения.</strong> I и i - одинаковые идентификаторы.<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">&nbsp;&nbsp; &nbsp;Var I: &nbsp; LongInt;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;i,t: &nbsp; real;</div></ol></div></div></div></div>Здесь 2 ошибки. Одна: повторение имён идентификаторов переменных. Вторая: повторение имён идентификаторов с именем функции I(t). Кроме i можно и нужно использовать другие имена. ;) <br>
<br>
Приведёнными мною набросками построения функции так и не воспользовалась. Ну и ладно. Помучаешься со своим (если свой) кодом, может, поймёшь разницу. 8-) <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="2010-05-22T20:27:19+00:00">22.05.10, 20:27</time></span></span><br>
Вдобавок:<br>
<strong class='tag-b'>не пользуйся чужими наработками, если в них ничего не понимаешь.</strong> Больше времени потратишь впустую, чем пользы получишь от самостоятельного обучения.]]></description>
        <author>Romtek</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601451</guid>
        <pubDate>Sat, 22 May 2010 19:04:12 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601451</link>
        <description><![CDATA[Prutvel: я написала программу. Пожалуйста, помогите ее довести до ума, чтобы паскаль не выводил ошибок:<br><br>program r6;<br>Uses graph;<br>Const GlColor=5; MtCount=5; MiCount=5; Dl:real=-2; Dr:Real=2;<br> function FMod (a, b: real): real;<br>begin<br>   FMOD:= a - b * Trunc(a / b);<br>end;<br>  function i(t:real): real;<br> Const Im=0.57; L=0.1; tau=62; f1=5.37; f2=8.06; T1=186;T2=124; T3=310;<br> begin<br>  if fmod(t,T3)&lt;tau then<br>    i:=Im;<br>  if (fmod(t,T3)&gt;=tau) and (fmod(t,T3)&lt;T1) then<br>    I:=-Im;<br>  if (fmod(t,T3)&gt;=T1) and (fmod(t,T3)&lt;(T1+tau)) then<br>    I:=Im;<br>  if (fmod(t,T3)&gt;=T1+tau) and (fmod(t,T3)&lt;T3) then<br>    I:=-Im;<br>end;<br>    Var   D,R:integer;<br>    iU,iD:real;<br>     begin<br>     Procedure CalciRange;<br>     Var I:LongInt;<br>      i,t:real;<br>       Begin<br>        iU:=f(Dl);<br>        iD:=iU;<br>        for k:=1 to GetMaxt<br>        begin<br>         t:=k*(Dr-Dl)/GetMaxt+Dl;<br>         i:=f(t);<br>         if iU&lt;i then<br>          iU:=i;<br>          if iD&gt;i then<br>           iD:=i;<br>        end;<br>       end;<br>     Procedure DrawKoord;<br>      var I:integer;<br>       t,i:integer;<br>       temp:string;<br>       Maxt,Maxi:integer;<br>        begin<br>         Maxt:=MtCount-1;<br>         Maxi:=MiCount-1;<br>         if (iU&gt;0) and (iD&lt;0) then<br>          begin<br>           i:=round(GetMaxi-GetMaxi*(-iD)/(iU-iD));<br>           Line (0,i,GetMaxt,i);<br>           Line (GetMaxt-5,i-5,GetMaxt,i);<br>           Line (GetMaxt-5,i+5,GetMaxt,i);<br>           OutTextti(GetMaxt-10,i+10,&#39;t&#39;);<br>           i:=i+TextHeight(&#39;t&#39;);<br>          end else<br>         if (iU&gt;0) then i:=GetMaxi-TextHeight(&#39;1&#39;)<br>          else i:=0;<br>         for k:=0 to Maxt do<br>          begin<br>           str((k*(Dr-Dl)/Maxt+Dl):5:2,Temp);<br>           t:=Round (k*GetMaxt/Maxt);<br>           if (t+TextWidth(Temp)&gt;GetMaxt) then<br>           x:=GetMaxt-TextWidth(Temp);<br>           OutTextti(t,i,Temp);<br>           end;<br>     if (Dl&lt;=0) and (Dr&gt;0) then<br>      begin<br>       t:=Round(GetMaxt*(-Dl/(Dr-Dl)));<br>       Line(t,0,t,GetMaxi);<br>       Line(t-5,5,t,0);<br>       Line(t+5,5,t,0);<br>       OutTextti(t+10,10,&#39;i&#39;);<br>       end else<br>        if (Dl&lt;0) then<br>         begin<br>          if (Abs(iU)&gt;Abs(iD)) then<br>          str(iU:5:2,Temp) else str (iD:5:2,Temp);<br>          t:=GetMaxt-TextWidth(Temp);<br>         end else<br>      t:=0;<br>       for k:=0 to Maxi do<br>        begin<br>         str((k*(iU-iD)/Maxi+iD):5:2,Temp);<br>         i:=GetMaxi-Round(k*GetMaxi/Maxi);<br>         if (i+TextHeight(Temp)&gt;GetMaxi) then<br>         i:=GetMaxi-TextHeight(Temp);<br>         OutTextti(t,i,Temp);<br>        end;<br>     end;<br>      Procedure DrawGr;<br>       var I,i:LongInt;<br>        Temp:Real;<br>        Ot,Oi:Integeer;<br>         begin<br>          Ot:=1;<br>          Temp:=func((Dr-Dl)/GetMaxt+Dl)-iD;<br>          i:=Round(Temp*GetMaxi/(iU-iD));<br>          Oi:=GetMaxi-i;<br>          SetColor(GlColor);<br>          for k:=1 to GetMaxt do<br>           begin<br>             Temp:=Func(k*(Dr-Dl)/GetMaxt+Dl)-iD;<br>             i:=Round(Temp*GetMaxi/(iU-iD));<br>             i:=GetMaxi-i;<br>             Line(Ot,Oi,k,i);<br>             Ot:=k;<br>             Oi:=i;<br>             end;<br>           end;<br>            begin<br>             D:=Detect;<br>             InitGraph(D,R,&#39;D:&#092;BP&#092;BGI&#39;);<br>             CalciRange;<br>             DrawKoord;<br>             DrawGr;<br>            Readln;<br>     CloseGraph;<br>     end.]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601375</guid>
        <pubDate>Sat, 22 May 2010 17:57:36 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601375</link>
        <description><![CDATA[volvo877: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2601318'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-22T17:25:28+00:00">22.05.10, 17:25</time></span><div class='quote '>В чем дело, не подскажете? </div></div>Подскажем. Только для начала ты зайди в Options -&gt; Compiler -&gt; Verbose, поставь там крестики на Warnings, Notes, Hints и General Info, нажми Ok, пересобери программу (Compile -&gt; Build или Compile -&gt; Make), и если опять не слинкуется - то нажми на F12 и покажи нам <span class="tag-color tag-color-named" data-value="red" style="color: red"><strong class='tag-b'>все</strong></span> те сообщения, которые тебе выдал компилятор. Иногда в них содержится подсказка, почему не линкуется.<br>
<br>
Кстати, какой компилятор у тебя? Версия, в смысле, какая?]]></description>
        <author>volvo877</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601318</guid>
        <pubDate>Sat, 22 May 2010 17:25:28 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601318</link>
        <description><![CDATA[Prutvel: Спасибо Вам большое&#33; А не подскажете, Вы в каком паскале загружали программу Free или Turbo: почему-то у меня на компьютере не запускаются программы вообще - пишет ошибку error while linking, причем даже на правильно написанную программу. Я так подумала, он ведь ни одну программу мне вообще не запустил с того времени, как я его (Free Pascal) установила. В чем дело, не подскажете?]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601288</guid>
        <pubDate>Sat, 22 May 2010 17:08:12 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601288</link>
        <description><![CDATA[Romtek: Я и помогаю. Или мне за тебя сделать задание?<br>С чем не справляешься - спрашивай.<br>Тут больше геометрии с математикой, чем программирования.]]></description>
        <author>Romtek</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601205</guid>
        <pubDate>Sat, 22 May 2010 15:53:16 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601205</link>
        <description><![CDATA[Prutvel: вы же обещали мне помочь с графикой...пожалуйста, помогите...]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601203</guid>
        <pubDate>Sat, 22 May 2010 15:52:22 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601203</link>
        <description><![CDATA[Romtek: Не стоит спрашивать по каждой мелочи.<br>Компилятор сам подсказывает где верно, а где нет.<br><br>Нужно на бумаге сначала свои мысли привести в порядок, тогда и на экране всё будет работать.<br><br>Удачи&#33;]]></description>
        <author>Romtek</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601197</guid>
        <pubDate>Sat, 22 May 2010 15:40:00 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601197</link>
        <description><![CDATA[Prutvel: Function i(t:Double): Double;<br>
скажите пожалуйста, так правильно?<br>
<br>
Const<br>
  Im=0.57; L=0.1; tau=62; f1=5.37; f2=8.06; T1=186;T2=124; T3=310;<br>
<br>
  var  t,I:array[0..1000] of real;<br>
<br>
begin<br>
<br>
 if fmod(t,T3)&lt;tau then<br>
    i:=Im;<br>
  if (fmod(t,T3)&gt;=tau) and (fmod(t,T3)&lt;T1) then<br>
    I:=-Im;<br>
  if (fmod(t,T3)&gt;=T1) and (fmod(t,T3)&lt;(T1+tau)) then<br>
    I:=Im;<br>
  if (fmod(t,T3)&gt;=T1+tau) and (fmod(t,T3)&lt;T3) then<br>
    I:=-Im;<br>
end;<br>
<br>
    max:=i[0]; min:=i[0];<br>
    for k:=1 to N do<br>
    begin<br>
    if i[k]&gt;max then max:=y[k];<br>
    if i[k]&lt;min then min:=y[k];<br>
    end;]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601188</guid>
        <pubDate>Sat, 22 May 2010 15:30:48 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601188</link>
        <description><![CDATA[Romtek: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2601180'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-22T15:15:50+00:00">22.05.10, 15:15</time></span><div class='quote '>max:=y[0]; min:=y[0];<br>
for i:=1 to N do<br>
begin<br>
if y[i]&gt;max then max:=y[i];<br>
if y[i]&lt;min then min:=y[i];<br>
end; </div></div><br>
только границы надо соблюдать. Или от 1 до N, или от 0 до N-1. Иначе будет ошибка.]]></description>
        <author>Romtek</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601180</guid>
        <pubDate>Sat, 22 May 2010 15:15:50 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601180</link>
        <description><![CDATA[Prutvel: а так полагаю<br>
<br>
 max:=y[0]; min:=y[0];<br>
    for i:=1 to N do<br>
    begin<br>
    if y[i]&gt;max then max:=y[i];<br>
    if y[i]&lt;min then min:=y[i];<br>
    end;]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601167</guid>
        <pubDate>Sat, 22 May 2010 14:51:40 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601167</link>
        <description><![CDATA[Prutvel: спасибо, сейчас попробую... <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="2010-05-22T15:10:57+00:00">22.05.10, 15:10</time></span></span><br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2601161'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Romtek &#064; <time class="tag-quote__quoted-time" datetime="2010-05-22T14:46:35+00:00">22.05.10, 14:46</time></span><div class='quote '>Набросок порядка действий такой:<br>
<br>
Пусть график вида y = f(x) должен размещаться на поверхности холста с размерами CanvasWidth на CanvasHeight.<br>
<br>
Тогда перед его построением надо:<br>
<br>
1. Определить граничные значения входных параметров (ось X): DataXmax, DataXmin.<br>
<br>
2. Определить граничные значения выходных параметров (ось Y): DataYmax, DataYmin.<br>
<br>
3. Найти коэффициент масштабирования данных для оси X<br>
по формуле: Kx = CanvasWidth / (DataXmax - DataXmin)<br>
<br>
4. Найти коэффициент масштабирования данных для оси Y<br>
по формуле: Ky = CanvasHeight / (DataYmax - DataYmin)<br>
<br>
     <br>
     WHILE x &lt; DataXmax DO<br>
     BEGIN<br>
          y := f(x);<br>
          <br>
          px := PixelCoordX(x);<br>
          py := PixelCoordX(y);<br>
          <br>
          LineTo(px, py); (* проводим линию до заданной точки от установленного ранее курсора (процедурами MoveTo/LineTo) *)<br>
          <br>
          x := x + deltaX<br>
     END;[/CODE]</div></div><br>
а как их найти? :unsure:]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601161</guid>
        <pubDate>Sat, 22 May 2010 14:46:35 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601161</link>
        <description><![CDATA[Romtek: Перенёс сообщение в Wiki: <a class='tag-url' href='http://www.sources.ru/wiki/doku.php?id=pascal:how_plot_graph_of_function' target='_blank'>Построение графика функции</a>.]]></description>
        <author>Romtek</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601155</guid>
        <pubDate>Sat, 22 May 2010 14:39:48 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601155</link>
        <description><![CDATA[Prutvel: ;)  ладно. Начинать надо с этого?<br><br>unit Unit1;<br>interfaceace<br>uses Classes,SysUtils,LResources,Forms,Graphics,Dialogs,Extctrls,Stdctrls;<br>function I(t:real):real;<br>procedure Graphica (a,b:real);<br>type<br>TForm1=class(TForm);<br>Button1: TButton;<br>Image1: TImage;<br>procedure ButtonClick(Sender:TObject);<br>procedure FormCreate(Sender:TObject);<br>private<br>public<br>end;<br>const Im=0.57,tau=0.062; L=0.1; f1=5.37; f2=8.06;<br>var]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601150</guid>
        <pubDate>Sat, 22 May 2010 14:31:23 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601150</link>
        <description><![CDATA[Romtek: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2601148'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-22T14:29:47+00:00">22.05.10, 14:29</time></span><div class='quote '>Ну предположим, </div></div>А дальше, <strong class='tag-b'>предположим</strong>, что графики ты сама умеешь строить.<br>
Продвигаться дальше будем?]]></description>
        <author>Romtek</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601148</guid>
        <pubDate>Sat, 22 May 2010 14:29:47 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601148</link>
        <description><![CDATA[Prutvel: нет, что-то он все равно эту ошибку выводит :unsure: <br><br>...<br>ну ладно, спасибо вам все равно большое... Ну предположим, ошибки нет и программа компилируется. Что делать дальше, как строить графики?]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601138</guid>
        <pubDate>Sat, 22 May 2010 14:14:48 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601138</link>
        <description><![CDATA[Булат Шакиров: Диспетчер задач -&gt; ctrl alt delete]]></description>
        <author>Булат Шакиров</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601137</guid>
        <pubDate>Sat, 22 May 2010 14:13:11 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601137</link>
        <description><![CDATA[Prutvel: а где это?]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601131</guid>
        <pubDate>Sat, 22 May 2010 14:06:29 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601131</link>
        <description><![CDATA[Romtek: Это когда предыдущие скомпилированные и запущенные программы не были закрыты.<br><br>Если они закрыты, надо завершить их процессы в Task Manager.]]></description>
        <author>Romtek</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601127</guid>
        <pubDate>Sat, 22 May 2010 14:00:29 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601127</link>
        <description><![CDATA[Prutvel: пишет на последнем end ошибку Error while linking, подставляла readln, writeln - не помогает...]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601122</guid>
        <pubDate>Sat, 22 May 2010 13:54:35 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601122</link>
        <description><![CDATA[Булат Шакиров: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2601121'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-22T13:50:05+00:00">22.05.10, 13:50</time></span><div class='quote '>а как же мне тогда задавать интервалы?  </div></div><br>
Я подправил предыдущее сообщ. Проверьте.]]></description>
        <author>Булат Шакиров</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601121</guid>
        <pubDate>Sat, 22 May 2010 13:50:05 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601121</link>
        <description><![CDATA[Prutvel: а как же мне тогда задавать интервалы?  :blink:]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601119</guid>
        <pubDate>Sat, 22 May 2010 13:47:04 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601119</link>
        <description><![CDATA[Булат Шакиров: Так компилируется, насколько верно записано - не знаю.<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">function FMod (a, b: Double): Double;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp; FMOD:= a - b * Trunc(a / b);</div><div class="code_line">end;</div><div class="code_line">&nbsp;</div><div class="code_line">Function i(t:Double): Double;</div><div class="code_line">Const</div><div class="code_line">&nbsp;&nbsp;Im=0.57; L=0.1; tau=62; f1=5.37; f2=8.06; T1=186;T2=124; T3=310;</div><div class="code_line">&nbsp;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp;if fmod(t,T3)&#60;tau then</div><div class="code_line">&nbsp;&nbsp; &nbsp;i:=Im;</div><div class="code_line">&nbsp;&nbsp;if (fmod(t,T3)&#62;=tau) and (fmod(t,T3)&#60;T1) then</div><div class="code_line">&nbsp;&nbsp; &nbsp;I:=-Im;</div><div class="code_line">&nbsp;&nbsp;if (fmod(t,T3)&#62;=T1) and (fmod(t,T3)&#60;(T1+tau)) then</div><div class="code_line">&nbsp;&nbsp; &nbsp;I:=Im;</div><div class="code_line">&nbsp;&nbsp;if (fmod(t,T3)&#62;=T1+tau) and (fmod(t,T3)&#60;T3) then</div><div class="code_line">&nbsp;&nbsp; &nbsp;I:=-Im;</div><div class="code_line">end;</div><div class="code_line">&nbsp;</div><div class="code_line">begin</div><div class="code_line">end.</div></ol></div></div></div></div>]]></description>
        <author>Булат Шакиров</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601113</guid>
        <pubDate>Sat, 22 May 2010 13:40:10 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601113</link>
        <description><![CDATA[Romtek: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2601107'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-22T13:32:16+00:00">22.05.10, 13:32</time></span><div class='quote '>Так вот я и писала I(t):=Im, а он пишет ошибку...</div></div>Я написал только про имя. Если передаём и параметр, то получаем рекурсивный вызов функции. Но так как можно только <strong class='tag-b'>получить</strong> результат рекурсии, а не присвоить ему значени, то получаешь ошибку.<br>
<br>
Убери параметр (t).]]></description>
        <author>Romtek</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601110</guid>
        <pubDate>Sat, 22 May 2010 13:36:48 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601110</link>
        <description><![CDATA[Prutvel: function FMod (t,T3: double):double;<br>Const Im=0.57; L=0.1; tau=62; f1=5.37; f2=8.06; T1=186;T2=124; T3=310;<br><br>begin<br>if (t-T3*Trunc(t/T3))&lt;tau then I(t):=Im;<br>if ((t-T3*Trunc(t/T3))&gt;=tau) and ((t-T3*Trunc(t/T3))&lt;T1) then I(t):=-Im;<br>if ((t-T3*Trunc(t/T3))&gt;=T1) and ((t-T3*Trunc(t/T3))&lt;(T1+tau)) then I(t):=Im;<br>if (t-T3*Trunc(t/T3))&gt;=(T1+tau)) and ((t-T3*Trunc(t/T3))&lt;T3) then I(t):=-Im;<br>end.]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601108</guid>
        <pubDate>Sat, 22 May 2010 13:35:04 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601108</link>
        <description><![CDATA[Булат Шакиров: <strong class='tag-b'>Prutvel</strong><br>
Копируйте текст программы из FPC. Edit -&gt; Copy to Windows]]></description>
        <author>Булат Шакиров</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601107</guid>
        <pubDate>Sat, 22 May 2010 13:32:16 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601107</link>
        <description><![CDATA[Prutvel: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2601102'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Romtek &#064; <time class="tag-quote__quoted-time" datetime="2010-05-22T13:23:37+00:00">22.05.10, 13:23</time></span><div class='quote '>Пардон, пишется имя функции, а не Result.</div></div><br>
Так вот я и писала I(t):=Im, а он пишет ошибку... :oops: <br>
<br>
И я написала, как Вы сказали - посмотрите, пожалуйста, так?]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601102</guid>
        <pubDate>Sat, 22 May 2010 13:23:37 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601102</link>
        <description><![CDATA[Romtek: Пардон, пишется имя функции, а не Result.<br>
<br>
Result только в Делфи или в FreePascal в режиме ObjFPC. <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="2010-05-22T13:25:24+00:00">22.05.10, 13:25</time></span></span><br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2601100'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-22T13:22:29+00:00">22.05.10, 13:22</time></span><div class='quote '>А что такое a,b и trunc? </div></div><br>
Trunc отсекает мантиссу вещественного числа.<br>
Trunc(-5.3) = -5<br>
Trunc(5.3) = 5 <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="2010-05-22T13:26:37+00:00">22.05.10, 13:26</time></span></span><br>
a, b - входные параметры для функции. Вроде бы как... :wacko: <br>
В чём, собственно, вопрос?]]></description>
        <author>Romtek</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601100</guid>
        <pubDate>Sat, 22 May 2010 13:22:29 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601100</link>
        <description><![CDATA[Prutvel: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2601088'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Romtek &#064; <time class="tag-quote__quoted-time" datetime="2010-05-22T13:11:18+00:00">22.05.10, 13:11</time></span><div class='quote '>Воспользуйся такой функцией вместо MOD:<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">function FMod (a, b: Double): Double;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp; Result := a - b * Trunc(a / b)</div><div class="code_line">end;</div></ol></div></div></div></div>Это аналог функции fmod() на С.</div></div><br>
ясно. А что такое a,b и trunc?]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601098</guid>
        <pubDate>Sat, 22 May 2010 13:20:58 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601098</link>
        <description><![CDATA[Romtek: Потому что на Паскале так не пишут. Для этого есть зарезервированное слово Result.]]></description>
        <author>Romtek</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601095</guid>
        <pubDate>Sat, 22 May 2010 13:18:25 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601095</link>
        <description><![CDATA[Prutvel: С этим, кажется, разобралась - недаром ведь по заданию провежуток дан в мс, а не в с, значит, периоды тоже можно в мс делать, тогда они - целые...<br><br>Но он пишет ошибку - когда я пишу присвоить значению функции такое-то значение: I(t):=Im. Почему он это пишет? Как исправить?]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601088</guid>
        <pubDate>Sat, 22 May 2010 13:11:18 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601088</link>
        <description><![CDATA[Romtek: Воспользуйся такой функцией вместо MOD:<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">function FMod (a, b: Double): Double;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp; Result := a - b * Trunc(a / b)</div><div class="code_line">end;</div></ol></div></div></div></div>Это аналог функции fmod() на С.]]></description>
        <author>Romtek</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601081</guid>
        <pubDate>Sat, 22 May 2010 13:07:36 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601081</link>
        <description><![CDATA[Булат Шакиров: Что делает mod  в Маткаде?<br>
Лучше прикладывайте не скриншот, а текст программы. <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="2010-05-22T13:10:06+00:00">22.05.10, 13:10</time></span></span><br>
Заметьте, что:<br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2600115'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Romtek &#064; <time class="tag-quote__quoted-time" datetime="2010-05-21T06:12:23+00:00">21.05.10, 06:12</time></span><div class='quote '>Операция mod действует только на целых числах. </div></div>]]></description>
        <author>Булат Шакиров</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601079</guid>
        <pubDate>Sat, 22 May 2010 13:05:03 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601079</link>
        <description><![CDATA[Prutvel: У меня, почему-то, пишет ошибки :&#39;(  <br><br>Я с функциями во фри паскале не работала раньше... Подскажите, что не так, пожалуйста.]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601043</guid>
        <pubDate>Sat, 22 May 2010 12:14:20 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601043</link>
        <description><![CDATA[Prutvel: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2601042'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Romtek &#064; <time class="tag-quote__quoted-time" datetime="2010-05-22T12:10:47+00:00">22.05.10, 12:10</time></span><div class='quote '>Напиши функцию I(t), которая на входу получала бы необходимые параметры, а на выходе - некоторое значение. С графикой поможем.<br>
Только функция должна быть правильной и компилироваться&#33;</div></div><br>
Спасибо, сейчас попробую.]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601042</guid>
        <pubDate>Sat, 22 May 2010 12:10:47 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601042</link>
        <description><![CDATA[Romtek: Напиши функцию I(t), которая на входу получала бы необходимые параметры, а на выходе - некоторое значение. С графикой поможем.<br>Только функция должна быть правильной и компилироваться&#33;]]></description>
        <author>Romtek</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601029</guid>
        <pubDate>Sat, 22 May 2010 11:47:52 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2601029</link>
        <description><![CDATA[Prutvel: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2600858'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Оззя &#064; <time class="tag-quote__quoted-time" datetime="2010-05-22T05:20:10+00:00">22.05.10, 05:20</time></span><div class='quote '><div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2600612'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-21T16:13:30+00:00">21.05.10, 16:13</time></span><div class='quote '>написали бы хотя бы алгоритм</div></div><br>
Так вот как раз алгоритм хотелось  бы от вас увидеть. А помочь с программой можно.</div></div><br>
Дело в том, что по заданию, надо сделать численный расчет напряжения на катушке идуктивности в цепи переменного тока прямоугольной формы, где L=0.1 Гн - индуктивность, Im=0.57 А - амплитуда тока, tau=62 мс - длительность импульса. Частота на четных периодах f1=5.37 Гц, на нечетных периодах f2=8.06 Гц. Периоды T1 и T2 равны.<br>
<br>
Я сделала это в маткаде, получилось, что сам график-то задается как система: то есть функция I(t) принимает вообще говоря 2 значения, это Im и <br>
-Im, но при разных промежутках времени, то есть получается так:<br>
<br>
           Im  if mod(t,T)&lt;tau<br>
          -Im if (mod(t,T)&gt;=tau) and (mod(t,T)&lt;T1)<br>
 I(t):=    Im if (mod(t,T)&gt;=T1) and (mod(t,T)&lt;T1+tau)<br>
          -Im if (mod(t,T)&gt;=T1+tau) and (mod(t,T)&lt;T)<br>
Так мы задали в маткаде этот ток, а потом приняли, что i:=0..300, dt:=T/100, t1:=i*dt;<br>
<br>
И, следовательно, получили отсюда график по точкам: написали Ii(ti), то есть получили точки. <br>
<br>
Так вот, то есть у меня есть точки...А дальше - надо построить такой же график на языке высокого уровня  :oops: ... Помогите, пожалуйста..., очень надо :(]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2600986</guid>
        <pubDate>Sat, 22 May 2010 10:41:28 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2600986</link>
        <description><![CDATA[Romtek: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2600481'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-21T13:14:39+00:00">21.05.10, 13:14</time></span><div class='quote '>а не подскажете конкретно - где. </div></div>Да, пожалуйста&#33;<br>
<br>
1. <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2599913'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-20T19:02:10+00:00">20.05.10, 19:02</time></span><div class='quote '>interface<strong class='tag-b'>ace</strong> </div></div><br>
2. <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2599913'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-20T19:02:10+00:00">20.05.10, 19:02</time></span><div class='quote '>functi<span class="tag-color tag-color-named" data-value="red" style="color: red"><strong class='tag-b'>i</strong></span>on I(t:real):   real;</div></div><br>
3. <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2599913'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-20T19:02:10+00:00">20.05.10, 19:02</time></span><div class='quote '>Form1.Image1.<span class="tag-color tag-color-named" data-value="red" style="color: red">‘</span>anvas.Pen.Style:=psSolid else<br>
Ferm1.Image1.<span class="tag-color tag-color-named" data-value="blue" style="color: blue">C</span>anvas.Pen.Style:=psDash; </div></div> <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="2010-05-22T10:53:48+00:00">22.05.10, 10:53</time></span></span><br>
<strong class='tag-b'>Prutvel</strong>, прости, а ты синтаксис Паскаля знаешь? Сложилось впечатление, что вовсе нет. <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="2010-05-22T11:02:30+00:00">22.05.10, 11:02</time></span></span><br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2599913'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-20T19:02:10+00:00">20.05.10, 19:02</time></span><div class='quote '><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">&nbsp;&nbsp; &nbsp;functiion I(t:real):real;</div><div class="code_line">&nbsp;&nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp;T1:=1/f1; T2:=1/f2; T:=T1+T2;</div><div class="code_line">&nbsp;&nbsp; &nbsp;if mod(t,T)&#60;tau then Result:=Im;</div><div class="code_line">&nbsp;&nbsp; &nbsp;if (mod(t,T)&#62;=tau) and (mod(t,T)&#60;T1) then Result:=-Im;</div><div class="code_line">&nbsp;&nbsp; &nbsp;if (mod(t,T)&#62;=T1) and (mod(t,T)&#60;(T1+tau)) then Result:=Im;</div><div class="code_line">&nbsp;&nbsp; &nbsp;if (mod(t,T)&#62;=(T1+tau)</div><div class="code_line">&nbsp;&nbsp; &nbsp;and (mod(t,T)&#60;T) then Result:=-Im;</div><div class="code_line">&nbsp;&nbsp; &nbsp;end;</div></ol></div></div></div></div></div></div>Такую чушь может написать только человек, ничего не понимающий в Паскале. За Делфи даже и речи нет.<br>
Начиная от синтасиса и заканчивая знанием базовых понятий.<br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2599913'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-20T19:02:10+00:00">20.05.10, 19:02</time></span><div class='quote '><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">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; N:=300,t0:=40;y0:=40;tk:=40; yk:=40;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s:=InputBox(&#39;введите левую границу&#39;,-1);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; val(s,a,kod=0;</div></ol></div></div></div></div></div></div>]]></description>
        <author>Romtek</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2600858</guid>
        <pubDate>Sat, 22 May 2010 05:20:10 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2600858</link>
        <description><![CDATA[Булат Шакиров: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2600612'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-21T16:13:30+00:00">21.05.10, 16:13</time></span><div class='quote '>написали бы хотя бы алгоритм</div></div><br>
Так вот как раз алгоритм хотелось  бы от вас увидеть. А помочь с программой можно.]]></description>
        <author>Булат Шакиров</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2600612</guid>
        <pubDate>Fri, 21 May 2010 16:13:30 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2600612</link>
        <description><![CDATA[Prutvel: если Вы знаете, как это делать, написали бы хотя бы алгоритм или примерчик какой-нибудь сбросили бы... пожалуйста :&#39;(]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2600495</guid>
        <pubDate>Fri, 21 May 2010 13:30:55 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2600495</link>
        <description><![CDATA[Булат Шакиров: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2600481'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-21T13:14:39+00:00">21.05.10, 13:14</time></span><div class='quote '>а не подскажете конкретно - где. </div></div><br>
Начиная со 2-й строки... :wacko: <br>
Далее смотреть лень.<br>
И незачем, я думаю... Проект вы не прикладываете, выложив какую-то мешанину. О чем с вами разговаривать? :blink:]]></description>
        <author>Булат Шакиров</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2600481</guid>
        <pubDate>Fri, 21 May 2010 13:14:39 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2600481</link>
        <description><![CDATA[Prutvel: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2600115'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Romtek &#064; <time class="tag-quote__quoted-time" datetime="2010-05-21T06:12:23+00:00">21.05.10, 06:12</time></span><div class='quote '>В приведённом коде будто нарочно сделаны опечатки,<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="2010-05-21T06:43:44+00:00">21.05.10, 06:43</time></span></span></div></div><br>
а не подскажете конкретно - где.]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2600115</guid>
        <pubDate>Fri, 21 May 2010 06:12:23 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2600115</link>
        <description><![CDATA[Romtek: В приведённом коде будто нарочно сделаны опечатки, которые видны невооружённым глазом. Проект, скорее всего, чужой. <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="2010-05-21T06:43:44+00:00">21.05.10, 06:43</time></span></span><br>
Операция mod действует только на целых числах.]]></description>
        <author>Romtek</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2600084</guid>
        <pubDate>Fri, 21 May 2010 04:53:49 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2600084</link>
        <description><![CDATA[Булат Шакиров: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2599913'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-20T19:02:10+00:00">20.05.10, 19:02</time></span><div class='quote '>посмотрите, пожалуйста:</div></div><br>
<br>
Это не проект. Это один модуль. А вас просили <strong class='tag-b'>весь</strong> проект присоединить.]]></description>
        <author>Булат Шакиров</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2599913</guid>
        <pubDate>Thu, 20 May 2010 19:02:10 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2599913</link>
        <description><![CDATA[Prutvel: посмотрите, пожалуйста:<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">unit Unit1;</div><div class="code_line">interfaceace</div><div class="code_line">uses Classes,SysUtils,LResources,Forms,Graphics,Dialogs,Extctrls,Stdctrls;</div><div class="code_line">function I(t:real):real;</div><div class="code_line">procedure Graphica (a,b:real);</div><div class="code_line">type</div><div class="code_line">TForm1=class(TForm);</div><div class="code_line">Button1: TButton;</div><div class="code_line">Image1: TImage;</div><div class="code_line">procedure ButtonClick(Sender:TObject);</div><div class="code_line">procedure FormCreate(Sender:TObject);</div><div class="code_line">private</div><div class="code_line">public</div><div class="code_line">end;</div><div class="code_line">const Im=0.57,tau=0.062; L=0.1; f1=5.37; f2=8.06;</div><div class="code_line">var Form1: TForm1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;t0,y0,tk,yk,a,b:real;</div><div class="code_line">&nbsp;&nbsp; &nbsp;t,y:array[0..1000] of real;</div><div class="code_line">&nbsp;&nbsp; &nbsp;u,v:array [0..1000] of integer;</div><div class="code_line">&nbsp;&nbsp; &nbsp;N:integer;</div><div class="code_line">&nbsp;&nbsp; &nbsp;implementation</div><div class="code_line">&nbsp;&nbsp; &nbsp;functiion I(t:real):real;</div><div class="code_line">&nbsp;&nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp;T1:=1/f1; T2:=1/f2; T:=T1+T2;</div><div class="code_line">&nbsp;&nbsp; &nbsp;if mod(t,T)&#60;tau then Result:=Im;</div><div class="code_line">&nbsp;&nbsp; &nbsp;if (mod(t,T)&#62;=tau) and (mod(t,T)&#60;T1) then Result:=-Im;</div><div class="code_line">&nbsp;&nbsp; &nbsp;if (mod(t,T)&#62;=T1) and (mod(t,T)&#60;(T1+tau)) then Result:=Im;</div><div class="code_line">&nbsp;&nbsp; &nbsp;if (mod(t,T)&#62;=(T1+tau)</div><div class="code_line">&nbsp;&nbsp; &nbsp;and (mod(t,T)&#60;T) then Result:=-Im;</div><div class="code_line">&nbsp;&nbsp; &nbsp;end;</div><div class="code_line">&nbsp;&nbsp; &nbsp;procedure Graphica(a,b:real);</div><div class="code_line">&nbsp;&nbsp; &nbsp;const kt=5;ky=5;</div><div class="code_line">&nbsp;&nbsp; &nbsp;var</div><div class="code_line">&nbsp;&nbsp; &nbsp;dt,dy,c,d,g,h,max,min:real;</div><div class="code_line">&nbsp;&nbsp; &nbsp;i,tempt,tempy:integer;</div><div class="code_line">&nbsp;&nbsp; &nbsp;s:string;</div><div class="code_line">&nbsp;&nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp;h:=(b-a)/(N-1);</div><div class="code_line">&nbsp;&nbsp; &nbsp;t[0]:=a;y[0]:=I(t[0]);</div><div class="code_line">&nbsp;&nbsp; &nbsp;for i:=1 to N do</div><div class="code_line">&nbsp;&nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp;t[i]:=t[i-1]+h;</div><div class="code_line">&nbsp;&nbsp; &nbsp;y[i]:=I(t[i]);</div><div class="code_line">&nbsp;&nbsp; &nbsp;end;</div><div class="code_line">&nbsp;&nbsp; &nbsp;max:=y[0]; min:=y[0];</div><div class="code_line">&nbsp;&nbsp; &nbsp;for i:=1 to N do</div><div class="code_line">&nbsp;&nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp;if y[i]&#62;max then max:=y[i];</div><div class="code_line">&nbsp;&nbsp; &nbsp;if y[i]&#60;min then min:=y[i];</div><div class="code_line">&nbsp;&nbsp; &nbsp;end;</div><div class="code_line">&nbsp;&nbsp; &nbsp;c:=(Form1.Image1.ClientWidth-t0-tk)/(b-a);</div><div class="code_line">&nbsp;&nbsp; &nbsp;d:=t0-c*t[0];</div><div class="code_line">&nbsp;&nbsp; &nbsp;g:=(Form1.Image1.ClientHeight-y0-yk)/(min-max);</div><div class="code_line">&nbsp;&nbsp; &nbsp;h:=yk-g*max;</div><div class="code_line">&nbsp;&nbsp; &nbsp;for i:=1 to N do</div><div class="code_line">&nbsp;&nbsp; &nbsp; begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; u[i]:=trunc(c*x[i]+d);</div><div class="code_line">&nbsp;&nbsp; &nbsp; v[i]:=trunc(g*y[i]+h);</div><div class="code_line">&nbsp;&nbsp; &nbsp; end;</div><div class="code_line">&nbsp;&nbsp; &nbsp; Form1.Image1.Canvas.Color:=clGray;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;Form1.Image1.Canvas.Pen.Mode:=pmNot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; Form1.Image1.Canvas.MoveTo(u[0],v[0]);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; Form1.Image1.Canvas.Pen.Width:=2;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; Form1.Image1.Canvas.Pen.Color:=clGreen;</div><div class="code_line">&nbsp;&nbsp; &nbsp;for i:=1 to N do</div><div class="code_line">&nbsp;&nbsp; &nbsp; Form1.Image1.Canvas.LineTo(u[i],v[i]);</div><div class="code_line">&nbsp;&nbsp; &nbsp;Form1.Image1.Canvas.Pen.Width:=1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;Form1.Image1.Canvas.Pen.Color:=clBlack</div><div class="code_line">&nbsp;&nbsp; &nbsp;Form1.Image1.Canvas.MoveTo(trunc(t0),trunc(h));</div><div class="code_line">&nbsp;&nbsp; &nbsp;if (trunc(h)&#62;yk) and (trunc(h)&#60;trunc(Form1.Image.ClientHeight-y0)) then</div><div class="code_line">&nbsp;&nbsp; &nbsp;Form1.Image1.Canvas.LineTo(trunc(Form1.Image1.ClientWidth-tk),trunc(h));</div><div class="code_line">&nbsp;&nbsp; &nbsp; Form1.Image1.Canvas.MoveTo(trunc(d),trunc(yk));</div><div class="code_line">&nbsp;&nbsp; &nbsp; if (trunc(d)&#62;0)</div><div class="code_line">&nbsp;&nbsp; &nbsp; and (trunc (trunc(d),trunc(Form1.Im</div><div class="code_line">&nbsp;&nbsp; &nbsp; ag1.ClientHeight-y0));</div><div class="code_line">&nbsp;&nbsp; &nbsp; dt:=(Form1.Im</div><div class="code_line">&nbsp;&nbsp; &nbsp; age1.ClientWidth-t0-tk)/KT3;</div><div class="code_line">&nbsp;&nbsp; &nbsp; for i:=0 to KT3 do</div><div class="code_line">&nbsp;&nbsp; &nbsp; begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; if (i=0) or (i=KT3) then</div><div class="code_line">&nbsp;&nbsp; &nbsp; Form1.Image1.‘anvas.Pen.Style:=psSolid else</div><div class="code_line">&nbsp;&nbsp; &nbsp; Ferm1.Image1.Canvas.Pen.Style:=psDash;</div><div class="code_line">&nbsp;&nbsp; &nbsp; Form1.Image1.Canvas.MoveTo(trunc(t0+i*dt),trunc(yk));</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;Form1.Image1.Canvas.LineTo(trunc(t0+i*dt),trunc(Form1.Image1.ClientHeight-y0));</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;end;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;dy:=(Form1.Image1.ClientHeight-y0-yk)/KY;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;for i:=0 to KY do</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;if (i=0) or (i=KY) then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; Form1.Image1.‘anvas.Pen.Style:=psSolid else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; Form1.Image1.‘anvas.Pen.Style:=psDash;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Form1.Image1.‘anvas.MoveTo(trunc(t0),trunc(yk+i*dy));</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Form1.Image1.‘anvas.LineTo(trunc(Form1.Image1.ClientWidth-tk),trunc(yk+i*dy));end;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Form1.Image1.‘anvas.Pen.Style:=psSolid;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; dt:=(b-a)/KT3;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; tempy:=trunc(Form1.Image1.ClientHeight-y0+1);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; for i:=0 to KT3 do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; str(a+i*dt:5:2,s);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; tmpt:=trunc(t0+i*(Form1.Image1.ClientWidtg-t0-tk)/KT3-1;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Form1.Image1.‘anvas.TextOut(trunc(d)-5,tempy,&#39;0&#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dy:=(max-min)/KY;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tempt:=5;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for i:=1 to KY do</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;str(ma</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;x-i*dy:5:2,s);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tempy:=trunc(yk-5+i*( Form1.Image1.ClientHeight-y0-yk)/KY);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form1.Image1.‘anvas.TextOut(tempt,tempy,s);end;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (trunc(h)&#62;yk) and trunc(h)&#60;Form1.Image1.ClientHeight-1) then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Form1.Image1.‘anvas.TextOut(tempt+1,trunc(h)-5,&#39;0&#39;);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tempt:=trunc(t0+i*( Form1.Image1.ClientWidth-t0-tk)/2);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form1.Image1.‘anvas.TextOut(temp1,&#39;График&#39;);end;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; procedure TForm1.FormCreate(Sender:TObject);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var s:string;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kod:integer;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; N:=300,t0:=40;y0:=40;tk:=40; yk:=40;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s:=InputBox(&#39;введите левую границу&#39;,-1);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; val(s,a,kod=0;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; until kod=0 repeat s:=InputBox(&#39;Введите правую границу&#39;,&#39;1&#39;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; val(s,b,kod)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; until kod=0; end;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; procedure TForm1.ButtonClick(Sender:YObject);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Graphica(a,b);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Initialization;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end.</div></ol></div></div></div></div>]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2599907</guid>
        <pubDate>Thu, 20 May 2010 18:53:47 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2599907</link>
        <description><![CDATA[volvo877: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=304006&view=findpost&p=2599900'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Prutvel &#064; <time class="tag-quote__quoted-time" datetime="2010-05-20T18:50:52+00:00">20.05.10, 18:50</time></span><div class='quote '>Я пыталась построить - нашла пример для лазуруса и набрала, но он чего-то не хочет работать. </div></div>То есть, присоединить сюда проект для Лазаруса, который ты <strong class='tag-b'>уже набрала</strong> - нельзя было, мы должны сделать ту же работу, с нуля набирать, тестировать, вместо того, чтобы (возможно) исправить один символ... Ну-ну... Подождем, может и найдется тот, у кого лишнего времени навалом...]]></description>
        <author>volvo877</author>
        <category>32-битные компиляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2599900</guid>
        <pubDate>Thu, 20 May 2010 18:50:52 +0000</pubDate>
        <title>Помогите построить график</title>
        <link>https://forum.sources.ru/index.php?showtopic=304006&amp;view=findpost&amp;p=2599900</link>
        <description><![CDATA[Prutvel: помогите построить график на любом языке программирования для  функции (см. прикрепленный файл - там уже график есть - в маткаде получила, надо такой же на паскале или в др. среде получить):<br><br>то есть даны промежутки и два значения Im=5.3 и Im=-5.37.<br><br>Я пыталась построить - нашла пример для лазуруса и набрала, но он чего-то не хочет работать. <br><br>Ну хоть схемку накидайте или саму программку, плиззз.]]></description>
        <author>Prutvel</author>
        <category>32-битные компиляторы</category>
      </item>
	
      </channel>
      </rss>
	