Differenze tra le versioni di "Comando RisolviNEDO"

Da GeoGebra Manual.
Riga 1: Riga 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=4.4}}</noinclude>
 
{{command|function|RisolviNEDO}}
 
{{command|function|RisolviNEDO}}
 
;RisolviNEDO[Lista derivate, Ascissa iniziale, Lista ordinate iniziali, Ascissa finale]
 
;RisolviNEDO[Lista derivate, Ascissa iniziale, Lista ordinate iniziali, Ascissa finale]
Riga 5: Riga 5:
 
{{Example|1=Siano ''f'(t, f, g, h) = g'', &nbsp; &nbsp;  ''g'(t, f, g, h) = h'' &nbsp;&nbsp;  e &nbsp;&nbsp;  ''h'(t, f, g, h) = -t h + 3t g + 2f + t''  
 
{{Example|1=Siano ''f'(t, f, g, h) = g'', &nbsp; &nbsp;  ''g'(t, f, g, h) = h'' &nbsp;&nbsp;  e &nbsp;&nbsp;  ''h'(t, f, g, h) = -t h + 3t g + 2f + t''  
 
:<code><nowiki>RisolviNEDO[{f', g', h'}, 0, {1,2,-2}, 10]</nowiki></code>
 
:<code><nowiki>RisolviNEDO[{f', g', h'}, 0, {1,2,-2}, 10]</nowiki></code>
:<code><nowiki>RisolviNEDO[{f', g', h'}, 0, {1,2,-2}, -5]</nowiki></code> .}}
+
:<code><nowiki>RisolviNEDO[{f', g', h'}, 0, {1,2,-2}, -5]</nowiki></code>.}}
 
{{Example|1=Siano ''x1'(t, x1, x2, x3, x4) = x2'',  &nbsp;&nbsp;    ''x2'(t, x1, x2, x3, x4) = x3'', &nbsp;&nbsp;    ''x3'(t, x1, x2, x3, x4) = x4'', &nbsp; &nbsp;  e  &nbsp;&nbsp;  ''x4'(t, x1, x2, x3, x4) = -8x1 + sin(t) x2 - 3x3 + t^2''.
 
{{Example|1=Siano ''x1'(t, x1, x2, x3, x4) = x2'',  &nbsp;&nbsp;    ''x2'(t, x1, x2, x3, x4) = x3'', &nbsp;&nbsp;    ''x3'(t, x1, x2, x3, x4) = x4'', &nbsp; &nbsp;  e  &nbsp;&nbsp;  ''x4'(t, x1, x2, x3, x4) = -8x1 + sin(t) x2 - 3x3 + t^2''.
 
:Siano inoltre ''x10 = -0.4'',  &nbsp;&nbsp;  ''x20 = -0.3'',  &nbsp;&nbsp;    ''x30 = 1.8'' &nbsp;&nbsp;    e &nbsp;&nbsp;  ''x40 = -1.5''
 
:Siano inoltre ''x10 = -0.4'',  &nbsp;&nbsp;  ''x20 = -0.3'',  &nbsp;&nbsp;    ''x30 = 1.8'' &nbsp;&nbsp;    e &nbsp;&nbsp;  ''x40 = -1.5''
Riga 13: Riga 13:
 
:Siano inoltre ''y1'(t, y1, y2) = y2''&nbsp;&nbsp;  e&nbsp;&nbsp;  ''y2'(t, y1, y2) = (-g) / l sin(y1)''  
 
:Siano inoltre ''y1'(t, y1, y2) = y2''&nbsp;&nbsp;  e&nbsp;&nbsp;  ''y2'(t, y1, y2) = (-g) / l sin(y1)''  
 
:<code>RisolviNEDO[{y1', y2'}, 0, {a, b}, 20] </code>
 
:<code>RisolviNEDO[{y1', y2'}, 0, {a, b}, 20] </code>
:<code>lun = Lunghezza[numericalIntegral1_1] </code>
+
:<code>lun = Lunghezza[numericalIntegral1] </code>
 
:<code>c = Slider[0, 1, 1 / lun, 1, 100, false, true, true, false] </code>
 
:<code>c = Slider[0, 1, 1 / lun, 1, 100, false, true, true, false] </code>
:<code>x1 = l sin(y(Punto[numericalIntegral1_1, c])) </code>
+
:<code>x1 = l sin(y(Punto[numericalIntegral1, c])) </code>
:<code>y1 = -l cos(y(Punto[numericalIntegral1_1, c])) </code>
+
:<code>y1 = -l cos(y(Punto[numericalIntegral1, c])) </code>
 
:<code>A = (x1, y1) </code>
 
:<code>A = (x1, y1) </code>
 
:<code>Segmento[(0, 0), A]</code>
 
:<code>Segmento[(0, 0), A]</code>

Versione delle 13:03, 31 ott 2014



RisolviNEDO[Lista derivate, Ascissa iniziale, Lista ordinate iniziali, Ascissa finale]
Risolve numericamente il sistema di equazioni differenziali indicato.
Esempio: Siano f'(t, f, g, h) = g,     g'(t, f, g, h) = h    e    h'(t, f, g, h) = -t h + 3t g + 2f + t
RisolviNEDO[{f', g', h'}, 0, {1,2,-2}, 10]
RisolviNEDO[{f', g', h'}, 0, {1,2,-2}, -5].
Esempio: Siano x1'(t, x1, x2, x3, x4) = x2,    x2'(t, x1, x2, x3, x4) = x3,    x3'(t, x1, x2, x3, x4) = x4,     e    x4'(t, x1, x2, x3, x4) = -8x1 + sin(t) x2 - 3x3 + t^2.
Siano inoltre x10 = -0.4,    x20 = -0.3,    x30 = 1.8    e    x40 = -1.5
RisolviNEDO[{x1', x2', x3', x4'}, 0, {x10, x20, x30, x40}, 20]
Esempio: Simulazione di un pendolo:
Siano g = 9.8,   l = 2,   a = 5 la posizione iniziale   e   b = 3 la forza iniziale.
Siano inoltre y1'(t, y1, y2) = y2   e   y2'(t, y1, y2) = (-g) / l sin(y1)
RisolviNEDO[{y1', y2'}, 0, {a, b}, 20]
lun = Lunghezza[numericalIntegral1]
c = Slider[0, 1, 1 / lun, 1, 100, false, true, true, false]
x1 = l sin(y(Punto[numericalIntegral1, c]))
y1 = -l cos(y(Punto[numericalIntegral1, c]))
A = (x1, y1)
Segmento[(0, 0), A]
AvviaAnimazione[]


Note: Vedere anche i comandi CampoDirezioni e RisolviEDO.
© 2024 International GeoGebra Institute