|
|
Línea 1: |
Línea 1: |
− | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|function|NResuelveEDO}}
| + | #REDIRECT[[Comando ResuelveNEDO]] |
− | ;NResuelveEDO[ <Lista de derivadas>, <valor inicial de x>, <Lista de valores iniciales de y>, <valor final de -x> ]:Resuelve numéricamente) el sistema de ecuaciones diferenciales
| |
− | :{{Examples|1=<br>
| |
− | ::<code>f'(t, f, g, h) = g </code>
| |
− | ::<code>g'(t, f, g, h) = h</code>
| |
− | ::<code><nowiki>h'(t, f, g, h) = -t h + 3t g + 2f + t</nowiki></code>
| |
− | ::<code><nowiki>NResuelveEDO[{f', g', h'}, 0, {1,2,-2}, 10]</nowiki></code>
| |
− | ::<code><nowiki>NResuelveEDO[{f', g', h'}, 0, {1,2,-2}, -5]</nowiki></code> (resuelve el sistema de inversa de tiempo).<br><hr><br>
| |
− | ::<code>x1'(t, x1, x2, x3, x4) = x2</code>
| |
− | ::<code>x2'(t, x1, x2, x3, x4) = x3</code>
| |
− | ::<code>x3'(t, x1, x2, x3, x4) = x4</code>
| |
− | ::<code>x4'(t, x1, x2, x3, x4) = -8x1 + sin(t) x2 - 3x3 + t^2</code>
| |
− | ::<code>x10 = -0.4</code>
| |
− | ::<code>x20 = -0.3</code>
| |
− | ::<code>x30 = 1.8</code>
| |
− | ::<code>x40 = -1.5</code>
| |
− | ::<code>NResuelveEDO[{x1', x2', x3', x4'}, 0, {x10, x20, x30, x40}, 20]</code><br><hr><br><center>Péndulo</center>
| |
− | ::<code>g = 9.8</code>
| |
− | ::<code>l = 2</code>
| |
− | ::<code>a = 5</code> (posición inicial)
| |
− | ::<code>b = 3</code> (fuerza inicial)
| |
− | ::<code>y1'(t, y1, y2) = y2</code>
| |
− | ::<code>y2'(t, y1, y2) = (-g) / l sin(y1) </code>
| |
− | ::<code>NResuelveEDO[{y1', y2'}, 0, {a, b}, 20] </code>
| |
− | ::<code>len = Longitud[IntegralNumérica1] </code>
| |
− | ::<code>c = Deslizador[0, 1, 1 / len, 1, 100, false, true, true, false] </code>
| |
− | ::<code>x1 = l seno(y(Punto[IntegralNumérica1, c])) </code>
| |
− | ::<code>y1 = -l cos(y(Punto[IntegralNumérica1, c])) </code>
| |
− | ::<code>A = (x1, y1) </code>
| |
− | ::<code>Segmento[(0, 0), A]</code>
| |
− | ::<code>IniciaAnimación[]</code><br>
| |
− | }}
| |
− | | |
− | <center> '''
| |
− | == Péndulo ==
| |
− | '''
| |
− | <ggb_applet width="437" height="351" version="4.2" id="60079" framePossible = "true" showResetIcon = "false" showAnimationButton = "true" enableRightClick = "false" errorDialogsActive = "true" enableLabelDrags = "false" showMenuBar = "false" showToolBar = "false" showToolBarHelp = "false" showAlgebraInput = "false" useBrowserForJS = "true" allowRescaling = "true" />
| |
− | </center>
| |
− | :{{Note|1=Ver también los comandos [[Comando ResuelveEDO|ResuelveEDO]] y [[Comando CampoDirecciones|CampoDirecciones]].}}
| |