Question: How to change x-axis values in odeplot command

Is there another way to change the x-axis values other than tickmarks? For example on an interval [0,4*Pi]

restart; with(plots); with(DEtools)

Ode1 := diff(y(t), t, t) = cos(t)

diff(diff(y(t), t), t) = cos(t)

(1)

IC := (D(y))(0) = 0, y(0) = 1

(D(y))(0) = 0, y(0) = 1

(2)

gsol := dsolve(Ode1, y(t))

y(t) = -cos(t)+c__1*t+c__2

(3)

exactsol := dsolve({IC, Ode1}, y(t), numeric, output = listprocedure)

odeplot(exactsol, [t, y(t)], 0 .. 4*Pi, color = blue, title = "Solution to the Differential Equation", labels = ["t", "y(t)"])

 

Download directly_integrable.mw

Please Wait...