Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Solving non-linear equations simultaneously with DE's using Euler integration

  1. Mar 7, 2008 #1
    I have 15 equations with 15 unknowns describing a dynamic process. I would like to know how I can conbine solving non-linear equations together with ordinary differential equations (1st and 2nd order) simultaneously, without using ode45, but Euler's method.
     
  2. jcsd
  3. Mar 8, 2008 #2
    Why would you want to do that? Are you doing a real time application or something or a homework question. Do you require very fast integration? Anyway, you can always write your own function. Euler's method is pretty basic.
     
  4. Mar 8, 2008 #3
    Thanks John, I will try that!
    My program is based the dynamic response of a system in the time domain. It was for an assignment last year, but I never quite got it to work so I thought I would try again. My prof told us ODE 45 would not work, he didn't say why though.
     
  5. Mar 8, 2008 #4
    Did he say the Eular's method would work? If so I'm surprised. You know that you can give ODE45 a set of points to calculate the state values at.
     
  6. Mar 8, 2008 #5
    i agree with John,and whether you eqtion a stiff one?
     
  7. Mar 8, 2008 #6
    Yeah, MATLAB has some stiff solvers as well. One thing that could happen with ODE45 is it could take too long to integrate if it ends up needing to take too small a step size to get the required error tolerance. One way to get around this is to decrease the error tolerances in ODE45. Eular's method may get you a solution but I don't know how you can be sure it is sufficiently accurate.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Solving non-linear equations simultaneously with DE's using Euler integration
Loading...