Matlab ODE Problem (paritcle trajectory)

intrepid44
Messages
3
Reaction score
0
Hi, I currently have this problem to solve, and I'm quite stuck. I would much appreciate it if anyone could point me in the direction on how to solve it.

m1.png


This is my go at it, although currently I don't have access to MATLAB until tomorrow as the university library has now closed.

m2.png


Is this the correct way to get the motion? If I then turn it into a function?

Many thanks.

Regards,
intrepid44
 
Physics news on Phys.org
The last bit should be: >> f = @(t,z) [z(2);-1.962*z(1)-2.943];
 
Got it sorted, never mind.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...

Similar threads

Back
Top