cách sử dụng phần mềm r làm toán cao cấp 2
Nhiệm vụ 3:Bài 10.4 1) y’= >library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y",lwd = 2, xlab = "Truc x", ylab = "Truc y",main = "PTVP") 2) y’+ y = 4x > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y",lwd = 2, xlab = "Truc x", ylab = "Truc y",main = "PTVP") 3) y’ + 2xy = x > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y",lwd = 2, xlab = "Truc x", ylab = "Truc y",main = "PTVP") > 4) y’ – ysinx = sinxcosx > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y",lwd = 2, xlab = "Truc x", ylab = "Truc y",main = "PTVP") > 5) y’+ = arcsinx +x > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y",lwd = 2, xlab = "Truc x", ylab = "Truc y",main = "PTVP") > 6) y’ = 2x (+y) > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y",lwd = 2, xlab = "Truc x", ylab = "Truc y",main = "PTVP") > 7) xy’ – 2y = > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y",lwd = 2, xlab = "Truc x", ylab = "Truc y",main = "PTVP") 8) y’ + y = arcsin x > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y",lwd = 2, xlab = "Truc x", ylab = "Truc y",main = "PTVP") > 9) y’ - = x lnx > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y",lwd = 2, xlab = "Truc x", ylab = "Truc y",main = "PTVP") > > ham dieukien nghiem 2) y(n+2) – 3y(n+1) + 2y(n) = 2n+3 > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y1",lwd = 2, ylab = "Truc y",main = "PTSP cấp 2") > 3) y(n+2) – 3y(n+1) + 2y(n) = 4n > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y1",lwd = 2, ylab = "Truc y",main = "PTSP cấp 2") > 4) y(n+2) – 4y(n+1) + 4y(n) = (9n+3) > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y1",lwd = 2, ylab = "Truc y",main = "PTSP cấp 2") > 5) y(n+2) – 4y(n+1) + 4y(n) = 16 + 18 > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y1",lwd = 2, ylab = "Truc y",main = "PTSP cấp 2") > 6) y(n+2) – 5y(n+1) + 6y(n) = cos n + 12 sin n > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y1",lwd = 2, ylab = "Truc y",main = "PTSP cấp 2") 7) y(n+2) – 2y(n+1) + 4y(n) = 14 > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y1",lwd = 2, ylab = "Truc y",main = "PTSP cấp 2") > 8) y(n+2) + y(n) = cos n – sin n > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y1",lwd = 2, ylab = "Truc y",main = "PTSP cấp 2") > 9) y(n+2) – 3y(n+1) + 2y(n) = 2n + + > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y1",lwd = 2, ylab = "Truc y",main = "PTSP cấp 2") > Nhiệm vu 5:Bài 11.4 1)y(n+1) = (n+1)y(n) + (n+1)! > library(deSolve) > ham dieukien nghiem Error in plot.window( ) : need finite 'ylim' values > 2) y(n+1) + ny(n) = n! > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y",lwd = 2, xlab = "Truc n", ylab = "Truc y",main = "PTSP") > 3) y(n+1) - y(n) = > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y",lwd = 2, xlab = "Truc n", ylab = "Truc y",main = "PTSP") Error in plot.window( ) : need finite 'ylim' values > 4) y(n+1) + y(n) = > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y",lwd = 2, xlab = "Truc n", ylab = "Truc y",main = "PTSP") Error in plot.window( ) : need finite 'ylim' values > 5) y(n+1) = y(n) + > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y",lwd = 2, xlab = "Truc n", ylab = "Truc y",main = "PTSP") Error in plot.window( ) : need finite 'ylim' values > 6) y(n+1) - y(n) = n > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y",lwd = 2, xlab = "Truc n", ylab = "Truc y",main = "PTSP") > 7) y(n+1) - ny(n) = n! ln(n+1) > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y",lwd = 2, xlab = "Truc n", ylab = "Truc y",main = "PTSP") Error in plot.window( ) : need finite 'ylim' values > 8) y(n+1) - y(n) = ln(n+1) > library(deSolve) > ham dieukien nghiem plot(nghiem, type = "l", which = "y",lwd = 2, xlab = "Truc n", ylab = "Truc y",main = "PTSP") Error in plot.window( ) : need finite 'ylim' values >