<pre style="font-family: Monospaced; font-style: normal; "><span style="color: rgb(1, 168, 1); font-style: italic; "><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; white-space: normal; ">Dear Samuel,</span><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; white-space: normal; "><br></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; white-space: normal; ">thanks for your quick answer. The following lines solve the heat equation and provides </div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; white-space: normal; "> a smooth evolution of the solution in the plot. SCILAB 5.4.0 does not like it.</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; white-space: normal; "><br></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; white-space: normal; ">thanks,</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; white-space: normal; "><br></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; white-space: normal; ">eliseo</div></span></pre><pre style="font-family: Monospaced; font-style: normal; "><span style="color: rgb(1, 168, 1); font-style: italic; ">///</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">// heat equation</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">//</span>
<span style="color: rgb(50, 185, 185); ">clear</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">//</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">// Initial value</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">//</span>
<span style="color: rgb(176, 24, 19); ">function</span> <span style="color: rgb(131, 67, 16); font-weight: bold; ">z</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(0, 0, 0); text-decoration: underline; ">u0</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(131, 67, 16); font-weight: bold; ">xx</span><span style="color: rgb(74, 85, 219); ">)</span>
<span style="color: rgb(160, 32, 240); ">if</span> <span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(50, 185, 185); ">abs</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(131, 67, 16); font-weight: bold; ">xx</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(92, 92, 92); "><=</span><span style="color: rgb(188, 143, 143); ">1</span><span style="color: rgb(74, 85, 219); ">)</span> <span style="color: rgb(160, 32, 240); ">then</span>
<span style="color: rgb(131, 67, 16); font-weight: bold; ">z</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(188, 143, 143); ">1</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(160, 32, 240); ">else</span>
<span style="color: rgb(131, 67, 16); font-weight: bold; ">z</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(188, 143, 143); ">0</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(160, 32, 240); ">end</span>
<span style="color: rgb(176, 24, 19); ">endfunction</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">//</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">// b heat coef.</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">//</span>
<span style="color: rgb(0, 0, 0); ">b</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(188, 143, 143); ">1</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(0, 0, 0); ">f0</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(174, 92, 176); text-decoration: underline; ">scf</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(188, 143, 143); ">0</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(0, 0, 0); ">f0</span><span style="color: rgb(92, 92, 92); ">.</span><span style="color: rgb(170, 170, 170); ">pixmap</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(188, 143, 143); ">'</span><span style="color: rgb(188, 143, 143); ">on</span><span style="color: rgb(188, 143, 143); ">'</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(174, 92, 176); text-decoration: underline; ">clf</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(0, 0, 0); ">f0</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(50, 185, 185); ">show_window</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">//</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">// space interval</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">//</span>
<span style="color: rgb(0, 0, 0); ">xmin</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(92, 92, 92); ">-</span><span style="color: rgb(188, 143, 143); ">5</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(0, 0, 0); ">xmax</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(188, 143, 143); ">5</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(0, 0, 0); ">Nx</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(188, 143, 143); ">125</span><span style="color: rgb(0, 0, 0); ">;</span> <span style="color: rgb(1, 168, 1); font-style: italic; ">// Number of points</span>
<span style="color: rgb(0, 0, 0); ">h</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(0, 0, 0); ">xmax</span><span style="color: rgb(92, 92, 92); ">-</span><span style="color: rgb(0, 0, 0); ">xmin</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(92, 92, 92); ">/</span><span style="color: rgb(0, 0, 0); ">Nx</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(0, 0, 0); ">x</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(0, 0, 0); ">xmin</span><span style="color: rgb(255, 170, 0); ">:</span><span style="color: rgb(0, 0, 0); ">h</span><span style="color: rgb(255, 170, 0); ">:</span><span style="color: rgb(0, 0, 0); ">xmax</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">//</span>
<span style="color: rgb(0, 0, 0); ">u</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(50, 185, 185); ">zeros</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(188, 143, 143); ">1</span><span style="color: rgb(0, 0, 0); ">,</span><span style="color: rgb(0, 0, 0); ">Nx</span><span style="color: rgb(92, 92, 92); ">+</span><span style="color: rgb(188, 143, 143); ">1</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(0, 0, 0); ">uold</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(50, 185, 185); ">zeros</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(188, 143, 143); ">1</span><span style="color: rgb(0, 0, 0); ">,</span><span style="color: rgb(0, 0, 0); ">Nx</span><span style="color: rgb(92, 92, 92); ">+</span><span style="color: rgb(188, 143, 143); ">1</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(0, 0, 0); ">u2</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(50, 185, 185); ">zeros</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(188, 143, 143); ">1</span><span style="color: rgb(0, 0, 0); ">,</span><span style="color: rgb(0, 0, 0); ">Nx</span><span style="color: rgb(92, 92, 92); ">+</span><span style="color: rgb(188, 143, 143); ">1</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(0, 0, 0); ">;</span> <span style="color: rgb(1, 168, 1); font-style: italic; ">// dimensionamos inicialmente a cero</span>
<span style="color: rgb(0, 0, 0); ">uold2</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(50, 185, 185); ">zeros</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(188, 143, 143); ">1</span><span style="color: rgb(0, 0, 0); ">,</span><span style="color: rgb(0, 0, 0); ">Nx</span><span style="color: rgb(92, 92, 92); ">+</span><span style="color: rgb(188, 143, 143); ">1</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(0, 0, 0); ">ucero</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(50, 185, 185); ">zeros</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(188, 143, 143); ">1</span><span style="color: rgb(0, 0, 0); ">,</span><span style="color: rgb(0, 0, 0); ">Nx</span><span style="color: rgb(92, 92, 92); ">+</span><span style="color: rgb(188, 143, 143); ">1</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">//</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">// time</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">//</span>
<span style="color: rgb(0, 0, 0); ">t0</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(188, 143, 143); ">0</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(0, 0, 0); ">time</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(0, 0, 0); ">t0</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(160, 32, 240); ">for</span> <span style="color: rgb(0, 0, 0); ">i</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(188, 143, 143); ">1</span><span style="color: rgb(255, 170, 0); ">:</span><span style="color: rgb(0, 0, 0); ">Nx</span><span style="color: rgb(92, 92, 92); ">+</span><span style="color: rgb(188, 143, 143); ">1</span>
<span style="color: rgb(0, 0, 0); ">uold</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(0, 0, 0); ">i</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(0, 0, 0); text-decoration: underline; ">u0</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(0, 0, 0); ">x</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(0, 0, 0); ">i</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(0, 0, 0); ">;</span> <span style="color: rgb(1, 168, 1); font-style: italic; ">// initial value</span>
<span style="color: rgb(0, 0, 0); ">uold2</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(0, 0, 0); ">i</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(0, 0, 0); text-decoration: underline; ">u0</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(0, 0, 0); ">x</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(0, 0, 0); ">i</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(0, 0, 0); ">ucero</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(0, 0, 0); ">i</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(0, 0, 0); text-decoration: underline; ">u0</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(0, 0, 0); ">x</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(0, 0, 0); ">i</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(160, 32, 240); ">end</span>
<span style="color: rgb(174, 92, 176); text-decoration: underline; ">plot</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(0, 0, 0); ">x</span><span style="color: rgb(0, 0, 0); ">,</span><span style="color: rgb(0, 0, 0); ">uold</span><span style="color: rgb(0, 0, 0); ">,</span><span style="color: rgb(188, 143, 143); ">'</span><span style="color: rgb(188, 143, 143); ">dr</span><span style="color: rgb(188, 143, 143); ">'</span><span style="color: rgb(74, 85, 219); ">)</span>
<span style="color: rgb(0, 0, 0); ">ejes</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(174, 92, 176); text-decoration: underline; ">gca</span><span style="color: rgb(74, 85, 219); ">(</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(0, 0, 0); ">;</span> </pre><pre style="font-family: Monospaced; font-style: normal; "><span style="color: rgb(0, 0, 0); ">ejes</span><span style="color: rgb(92, 92, 92); ">.</span><span style="color: rgb(170, 170, 170); ">data_bounds</span><span style="color: rgb(92, 92, 92); ">=</span><span style="color: rgb(74, 85, 219); ">[</span><span style="color: rgb(0, 0, 0); ">xmin</span><span style="color: rgb(0, 0, 0); ">,</span> <span style="color: rgb(188, 143, 143); ">0</span><span style="color: rgb(0, 0, 0); ">;</span> <span style="color: rgb(0, 0, 0); ">xmax</span><span style="color: rgb(0, 0, 0); ">,</span><span style="color: rgb(188, 143, 143); ">1.2</span><span style="color: rgb(74, 85, 219); ">]</span><span style="color: rgb(0, 0, 0); ">;</span></pre><pre style="font-family: Monospaced; "><span style="font-style: normal; color: rgb(174, 92, 176); text-decoration: underline; ">title</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span class="Apple-style-span" style="font-style: normal; color: rgb(188, 143, 143); ">" <span class="Apple-style-span" style="color: rgb(0, 0, 0); "><span style="color: rgb(74, 85, 219); ">Initial data </span><span style="color: rgb(188, 143, 143); ">"</span><span style="color: rgb(74, 85, 219); ">)</span><span style="color: rgb(0, 0, 0); ">;</span></span><br></span><span style="font-style: normal; color: rgb(50, 185, 185); ">show_pixmap</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="font-style: normal; color: rgb(50, 185, 185); ">sleep</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(10</span><span style="font-style: normal; color: rgb(188, 143, 143); ">00</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="font-style: normal; color: rgb(0, 0, 0); ">k</span><span style="font-style: normal; color: rgb(92, 92, 92); ">=</span><span style="font-style: normal; color: rgb(188, 143, 143); ">0.9</span><span style="font-style: normal; color: rgb(92, 92, 92); ">*</span><span style="font-style: normal; color: rgb(0, 0, 0); ">h</span><span style="font-style: normal; color: rgb(92, 92, 92); ">^</span><span style="font-style: normal; color: rgb(188, 143, 143); ">2</span><span style="font-style: normal; color: rgb(92, 92, 92); ">/</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(188, 143, 143); ">2</span><span style="font-style: normal; color: rgb(92, 92, 92); ">*</span><span style="font-style: normal; color: rgb(0, 0, 0); ">b</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;// stability</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">//</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">// coeficiente mu=k/h^2</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">//</span>
<span style="font-style: normal; color: rgb(0, 0, 0); ">mu</span><span style="font-style: normal; color: rgb(92, 92, 92); ">=</span><span style="font-style: normal; color: rgb(0, 0, 0); ">k</span><span style="font-style: normal; color: rgb(92, 92, 92); ">/</span><span style="font-style: normal; color: rgb(0, 0, 0); ">h</span><span style="font-style: normal; color: rgb(92, 92, 92); ">^</span><span style="font-style: normal; color: rgb(188, 143, 143); ">2</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">// </span>
<span style="font-style: normal; color: rgb(0, 0, 0); ">coef1</span><span style="font-style: normal; color: rgb(92, 92, 92); ">=</span><span style="font-style: normal; color: rgb(0, 0, 0); ">b</span><span style="font-style: normal; color: rgb(92, 92, 92); ">*</span><span style="font-style: normal; color: rgb(0, 0, 0); ">mu</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="font-style: normal; color: rgb(0, 0, 0); ">coef2</span><span style="font-style: normal; color: rgb(92, 92, 92); ">=</span><span style="font-style: normal; color: rgb(188, 143, 143); ">1</span><span style="font-style: normal; color: rgb(92, 92, 92); ">-</span><span style="font-style: normal; color: rgb(188, 143, 143); ">2</span><span style="font-style: normal; color: rgb(92, 92, 92); ">*</span><span style="font-style: normal; color: rgb(0, 0, 0); ">b</span><span style="font-style: normal; color: rgb(92, 92, 92); ">*</span><span style="font-style: normal; color: rgb(0, 0, 0); ">mu</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="font-style: normal; color: rgb(0, 0, 0); ">coef3</span><span style="font-style: normal; color: rgb(92, 92, 92); ">=</span><span style="font-style: normal; color: rgb(0, 0, 0); ">b</span><span style="font-style: normal; color: rgb(92, 92, 92); ">*</span><span style="font-style: normal; color: rgb(0, 0, 0); ">mu</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="color: rgb(1, 168, 1); font-style: italic; ">//</span>
<span style="font-style: normal; color: rgb(160, 32, 240); ">while</span> <span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(0, 0, 0); ">time</span><span style="font-style: normal; color: rgb(92, 92, 92); "><</span><span style="font-style: normal; color: rgb(188, 143, 143); ">0.5</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span>
<span style="font-style: normal; color: rgb(0, 0, 0); ">time</span><span style="font-style: normal; color: rgb(92, 92, 92); ">=</span><span style="font-style: normal; color: rgb(0, 0, 0); ">time</span><span style="font-style: normal; color: rgb(92, 92, 92); ">+</span><span style="font-style: normal; color: rgb(0, 0, 0); ">k</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="font-style: normal; color: rgb(0, 0, 0); ">u</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(188, 143, 143); ">1</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(92, 92, 92); ">=</span><span style="font-style: normal; color: rgb(188, 143, 143); ">0</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="font-style: normal; color: rgb(0, 0, 0); ">u</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(0, 0, 0); ">Nx</span><span style="font-style: normal; color: rgb(92, 92, 92); ">+</span><span style="font-style: normal; color: rgb(188, 143, 143); ">1</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(92, 92, 92); ">=</span><span style="font-style: normal; color: rgb(188, 143, 143); ">0</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="font-style: normal; color: rgb(160, 32, 240); ">for</span> <span style="font-style: normal; color: rgb(0, 0, 0); ">i</span><span style="font-style: normal; color: rgb(92, 92, 92); ">=</span><span style="font-style: normal; color: rgb(188, 143, 143); ">2</span><span style="font-style: normal; color: rgb(255, 170, 0); ">:</span><span style="font-style: normal; color: rgb(0, 0, 0); ">Nx</span>
<span style="font-style: normal; color: rgb(0, 0, 0); ">u</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(0, 0, 0); ">i</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(92, 92, 92); ">=</span><span style="font-style: normal; color: rgb(0, 0, 0); ">coef1</span><span style="font-style: normal; color: rgb(92, 92, 92); ">*</span><span style="font-style: normal; color: rgb(0, 0, 0); ">uold</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(0, 0, 0); ">i</span><span style="font-style: normal; color: rgb(92, 92, 92); ">+</span><span style="font-style: normal; color: rgb(188, 143, 143); ">1</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(92, 92, 92); ">+</span><span style="font-style: normal; color: rgb(0, 0, 0); ">coef2</span><span style="font-style: normal; color: rgb(92, 92, 92); ">*</span><span style="font-style: normal; color: rgb(0, 0, 0); ">uold</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(0, 0, 0); ">i</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(92, 92, 92); ">+</span><span style="font-style: normal; color: rgb(0, 0, 0); ">coef3</span><span style="font-style: normal; color: rgb(92, 92, 92); ">*</span><span style="font-style: normal; color: rgb(0, 0, 0); ">uold</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(0, 0, 0); ">i</span><span style="font-style: normal; color: rgb(92, 92, 92); ">-</span><span style="font-style: normal; color: rgb(188, 143, 143); ">1</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="font-style: normal; color: rgb(160, 32, 240); ">end</span>
<span style="font-style: normal; color: rgb(174, 92, 176); text-decoration: underline; ">clf</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(0, 0, 0); ">f0</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="font-style: normal; color: rgb(174, 92, 176); text-decoration: underline; ">plot</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(0, 0, 0); ">x</span><span style="font-style: normal; color: rgb(0, 0, 0); ">,</span><span style="font-style: normal; color: rgb(0, 0, 0); ">u</span><span style="font-style: normal; color: rgb(0, 0, 0); ">,</span><span style="font-style: normal; color: rgb(188, 143, 143); ">'</span><span style="font-style: normal; color: rgb(188, 143, 143); ">or</span><span style="font-style: normal; color: rgb(188, 143, 143); ">'</span><span style="font-style: normal; color: rgb(0, 0, 0); ">,</span><span style="font-style: normal; color: rgb(0, 0, 0); ">x</span><span style="font-style: normal; color: rgb(0, 0, 0); ">,</span><span style="font-style: normal; color: rgb(0, 0, 0); ">ucero</span><span style="font-style: normal; color: rgb(0, 0, 0); ">,</span><span style="font-style: normal; color: rgb(188, 143, 143); ">'</span><span style="font-style: normal; color: rgb(188, 143, 143); ">db</span><span style="font-style: normal; color: rgb(188, 143, 143); ">'</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="font-style: normal; color: rgb(0, 0, 0); ">ejes</span><span style="font-style: normal; color: rgb(92, 92, 92); ">=</span><span style="font-style: normal; color: rgb(174, 92, 176); text-decoration: underline; ">gca</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="font-style: normal; color: rgb(0, 0, 0); ">ejes</span><span style="font-style: normal; color: rgb(92, 92, 92); ">.</span><span style="font-style: normal; color: rgb(170, 170, 170); ">data_bounds</span><span style="font-style: normal; color: rgb(92, 92, 92); ">=</span><span style="font-style: normal; color: rgb(74, 85, 219); ">[</span><span style="font-style: normal; color: rgb(0, 0, 0); ">xmin</span><span style="font-style: normal; color: rgb(0, 0, 0); ">,</span> <span style="font-style: normal; color: rgb(188, 143, 143); ">0</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span> <span style="font-style: normal; color: rgb(0, 0, 0); ">xmax</span><span style="font-style: normal; color: rgb(0, 0, 0); ">,</span><span style="font-style: normal; color: rgb(188, 143, 143); ">1.2</span><span style="font-style: normal; color: rgb(74, 85, 219); ">]</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="font-style: normal; color: rgb(174, 92, 176); text-decoration: underline; ">title</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(188, 143, 143); ">"</span><span style="font-style: normal; color: rgb(188, 143, 143); ">Euler explicit: time= </span><span style="font-style: normal; color: rgb(188, 143, 143); ">"</span><span style="font-style: normal; color: rgb(92, 92, 92); ">+</span><span style="font-style: normal; color: rgb(50, 185, 185); ">string</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(0, 0, 0); ">time</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(255, 170, 0); ">..</span>
<span style="font-style: normal; color: rgb(92, 92, 92); ">+</span><span style="font-style: normal; color: rgb(188, 143, 143); ">"</span><span style="font-style: normal; color: rgb(188, 143, 143); ">; time step = </span><span style="font-style: normal; color: rgb(188, 143, 143); ">"</span><span style="font-style: normal; color: rgb(92, 92, 92); ">+</span><span style="font-style: normal; color: rgb(50, 185, 185); ">string</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(0, 0, 0); ">k</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(92, 92, 92); ">+</span><span style="font-style: normal; color: rgb(255, 170, 0); ">..</span>
<span style="font-style: normal; color: rgb(92, 92, 92); ">+</span><span style="font-style: normal; color: rgb(188, 143, 143); ">"</span><span style="font-style: normal; color: rgb(188, 143, 143); ">; spatial h=</span><span style="font-style: normal; color: rgb(188, 143, 143); ">"</span><span style="font-style: normal; color: rgb(92, 92, 92); ">+</span><span style="font-style: normal; color: rgb(50, 185, 185); ">string</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(0, 0, 0); ">h</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(92, 92, 92); ">+</span><span style="font-style: normal; color: rgb(188, 143, 143); ">"</span><span style="font-style: normal; color: rgb(188, 143, 143); ">; diffusion = </span><span style="font-style: normal; color: rgb(188, 143, 143); ">"</span><span style="font-style: normal; color: rgb(92, 92, 92); ">+</span><span style="font-style: normal; color: rgb(50, 185, 185); ">string</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(0, 0, 0); ">b</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="font-style: normal; color: rgb(174, 92, 176); text-decoration: underline; ">legend</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(188, 143, 143); ">'</span><span style="font-style: normal; color: rgb(188, 143, 143); ">b=1</span><span style="font-style: normal; color: rgb(188, 143, 143); ">'</span><span style="font-style: normal; color: rgb(0, 0, 0); ">,</span><span style="font-style: normal; color: rgb(188, 143, 143); ">'</span><span style="font-style: normal; color: rgb(188, 143, 143); ">initial</span><span style="font-style: normal; color: rgb(188, 143, 143); ">'</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="font-style: normal; color: rgb(50, 185, 185); ">show_pixmap</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="font-style: normal; color: rgb(0, 0, 0); ">uold</span><span style="font-style: normal; color: rgb(92, 92, 92); ">=</span><span style="font-style: normal; color: rgb(0, 0, 0); ">u</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="font-style: normal; color: rgb(50, 185, 185); ">sleep</span><span style="font-style: normal; color: rgb(74, 85, 219); ">(</span><span style="font-style: normal; color: rgb(188, 143, 143); ">1</span><span style="font-style: normal; color: rgb(74, 85, 219); ">)</span><span style="font-style: normal; color: rgb(0, 0, 0); ">;</span>
<span style="font-style: normal; color: rgb(160, 32, 240); ">end</span><span class="Apple-style-span" style="font-size: 18px;">
</span></pre><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "></div></span></div></span></div></span></div></span></div></div></div></span></div></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "> </span></div></div></span></div></span></div></span></div></span></div></div></div></span></div></span></span></div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://mailinglists.scilab.org/Use-of-show-pixmap-obsolete-Alternative-tp4025179p4025185.html">Re: Use of show_pixmap() obsolete. Alternative??</a><br/>
Sent from the <a href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html">Scilab users - Mailing Lists Archives mailing list archive</a> at Nabble.com.<br/>