1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

What kind of integration is this?

  1. Sep 24, 2012 #1
    1. The problem statement, all variables and given/known data

    I'm given with the following script:

    Code (Text):
    for ii = 2:length(x_time)
        V(ii)                   = V(ii-1) - (forces_x(ii-1)./w) * g .* dt;                                        
        D(ii)                   = 0.5 .* rho .* V(ii).^2 * s * Cd;                    
        R(ii)                   = (not relevant);
        F(ii)                   = 2 .* Cf(ii) .* R(ii);                              
        forces_x(ii)         = (F(ii) + D(ii)) - T(ii);                
        distance(ii)         = distance(ii-1) + .5 .* (V(ii) + V(ii-1)) .* dt;          
        deceleration(ii)   = (V(ii) - V(ii-1))./dt;                              
    end
    2. Relevant equations

    Above I've reported only the relevant equations.

    3. The attempt at a solution

    I'm asked to state what kind of integration is this.

    I don't know really how to answer, I was thinking about Euler-method, but right now I am a bit confused.


    Thank you for your help!
     
  2. jcsd
  3. Sep 24, 2012 #2

    rcgldr

    User Avatar
    Homework Helper

    Two methods are being used, one method for velocity, and another method for distance. Perhaps that is why you're not sure?
     
    Last edited by a moderator: Sep 25, 2012
  4. Sep 24, 2012 #3
    Can you please tell me which is the method for the velocity and which one is for the distance?

    Thanks for the help!
     
    Last edited by a moderator: Sep 25, 2012
  5. Sep 24, 2012 #4

    rcgldr

    User Avatar
    Homework Helper

    Note the key equations being used for velocity and distance are essentially these equations:

    v = v[i-1] + a Δt

    d = d[i-1] + 1/2 (v + v[i-1]) Δt
     
    Last edited by a moderator: Sep 25, 2012
  6. Sep 25, 2012 #5
    Exactly! Thanks again!

    But what's the name (e.g. Runge-Kutta, Euler, ecc.) of this integration methods, if they have any?
     
    Last edited by a moderator: Sep 25, 2012
  7. Sep 25, 2012 #6

    rcgldr

    User Avatar
    Homework Helper

    Last edited by a moderator: Sep 25, 2012
  8. Sep 25, 2012 #7
    Yessir, I think I was mislead from the homework request.

    Thank you for your very accurate answers!
     
    Last edited by a moderator: Sep 25, 2012
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook