Risolvi il problema differenziale y'(x) = y(x)−x con le condizioni
source("http://macosa.dima.unige.it/r.R") # se non l'hai già caricato Dy = function(x,y) y-x BF=3; HF=3; Plane(-1,5, -2,5) diredif(-1,5, -2,5, 22,20) soledif(3,2, -2, 1e5,"seagreen"); soledif(3,2, 6, 1e5,"seagreen") soledif(1,2, 6, 1e5,"brown"); soledif(1,2, -2, 1e5,"brown") soledif(2,4, 6, 1e5,"blue"); soledif(2,4, -2, 1e5,"blue")# Con WolframAlpha, introducendo y'(x) = y(x)-x, y(..) = .. ottengo: f = function(x) x+1; g = function(x) x-2*exp(x-3)+1; h = function(x) x+exp(x-2)+1 graph1(f, -2,6, "red"); graph1(g, -2,6, "green"); graph1(h, -2,6, "cyan")
Per altri commenti: Modelli differenziali.