Differenze tra le versioni di "Comando RisolviNEDO"

Da GeoGebra Manual.
 
(Una versione intermedia di un altro utente non mostrate)
Riga 1: Riga 1:
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|function|RisolviNEDO}}
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|function|RisolviNEDO}}
;RisolviNEDO[Lista derivate, Ascissa iniziale, Lista ordinate iniziali, Ascissa finale]
+
;RisolviNEDO(Lista derivate, Ascissa iniziale, Lista ordinate iniziali, Ascissa finale)
 
:Risolve numericamente il sistema di equazioni differenziali indicato.
 
:Risolve numericamente il sistema di equazioni differenziali indicato.
 
{{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''
:<code>RisolviNEDO[{x1', x2', x3', x4'}, 0, {x10, x20, x30, x40}, 20]</code>}}
+
:<code>RisolviNEDO({x1', x2', x3', x4'}, 0, {x10, x20, x30, x40}, 20)</code>}}
 
{{Example|1=Simulazione di un pendolo:
 
{{Example|1=Simulazione di un pendolo:
 
:Siano ''g = 9.8'',&nbsp;&nbsp; ''l = 2'', &nbsp;&nbsp;''a = 5'' la posizione iniziale &nbsp;&nbsp;e&nbsp;&nbsp; ''b = 3'' la forza iniziale.
 
:Siano ''g = 9.8'',&nbsp;&nbsp; ''l = 2'', &nbsp;&nbsp;''a = 5'' la posizione iniziale &nbsp;&nbsp;e&nbsp;&nbsp; ''b = 3'' la forza iniziale.
 
: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[IntegraleNumerico1] </code>
+
:<code>lun = Lunghezza(IntegraleNumerico1) </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[IntegraleNumerico1, c])) </code>
+
:<code>x1 = l sin(y(Punto(IntegraleNumerico1, c))) </code>
:<code>y1 = -l cos(y(Punto[IntegraleNumerico1, c])) </code>
+
:<code>y1 = -l cos(y(Punto(IntegraleNumerico1, c))) </code>
 
:<code>A = (x1, y1) </code>
 
:<code>A = (x1, y1) </code>
:<code>Segmento[(0, 0), A]</code>
+
:<code>Segmento((0, 0), A)</code>
:<code>AvviaAnimazione[]</code>}}
+
:<code>AvviaAnimazione()</code>}}
  
  
 
{{Note|1= Vedere anche i comandi [[Comando CampoDirezioni|CampoDirezioni]] e  [[Comando RisolviEDO|RisolviEDO]].}}
 
{{Note|1= Vedere anche i comandi [[Comando CampoDirezioni|CampoDirezioni]] e  [[Comando RisolviEDO|RisolviEDO]].}}

Versione attuale delle 10:20, 9 ott 2017



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(IntegraleNumerico1)
c = Slider(0, 1, 1 / lun, 1, 100, false, true, true, false)
x1 = l sin(y(Punto(IntegraleNumerico1, c)))
y1 = -l cos(y(Punto(IntegraleNumerico1, c)))
A = (x1, y1)
Segmento((0, 0), A)
AvviaAnimazione()


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