Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
I am trying to solve the following ODE;
mx''(t) + cx'(t) + kx(t) = f(t) I already defined my function beforehand.
for x(t)=0 and x'(t)=0
Then I am trying to form the solve block by Given,
But, after I write Given, x''(t) seems still red, undefined.
Given
mx''(t) + cx'(t) + kx(t) = f(t) %%Should x''(t) be red here?
x(t)=0
x'(t)=0
x:= Odesolve(t,5)
what is wrong?
Thanks in advance..
Solved! Go to Solution.
mahmut akça wrote:
I am trying to solve the following ODE;
mx''(t) + cx'(t) + kx(t) = f(t) I already defined my function beforehand.
for x(t)=0 and x'(t)=0
Then I am trying to form the solve block by Given,
But, after I write Given, x''(t) seems still red, undefined.
Given
mx''(t) + cx'(t) + kx(t) = f(t) %%Should x''(t) be red here?
x(t)=0
x'(t)=0
x:= Odesolve(t,5)
what is wrong?
Thanks in advance..
Your initial conditions should be x(0) = 0, not x(t) = 0.
mahmut akça wrote:
I am trying to solve the following ODE;
mx''(t) + cx'(t) + kx(t) = f(t) I already defined my function beforehand.
for x(t)=0 and x'(t)=0
Then I am trying to form the solve block by Given,
But, after I write Given, x''(t) seems still red, undefined.
Given
mx''(t) + cx'(t) + kx(t) = f(t) %%Should x''(t) be red here?
x(t)=0
x'(t)=0
x:= Odesolve(t,5)
what is wrong?
Thanks in advance..
Your initial conditions should be x(0) = 0, not x(t) = 0.
Thanks sir, but I wrote it here in the wrong way. Actual problem is not that.
I just saw your attachment. Now it works.
I still don't know where I did wrong with that "Given".
Thanks a lot,
mahmut akça wrote:
...I still don't know where I did wrong with that "Given"...
It was necessary to attach a Mathcad file.