Originally posted by: Heisenberg
I'd try to use Maple first to do it. It's much simpler to use than Mathematica.
Originally posted by: Heisenberg
I'd try to use Maple first to do it. It's much simpler to use than Mathematica.
Yeah, I think that's the right syntax. I haven't use Maple for ODE stuff for a while. I was reading the equation with E in the exponential, but if E is out front then your solution is right. If E's in the exponential, it'd be x(t) = A*B*(E/D)*exp(D*t/E) + k.Originally posted by: RaynorWolfcastle
Originally posted by: Heisenberg
I'd try to use Maple first to do it. It's much simpler to use than Mathematica.
like I said, matlab's symbolics are handled by a maple library so if all he has is matlab, he can still use that to solve the problem. If I remember my Maple correctly, it will look something like:
dsolve(diff(x(t),t)=A*B*exp(D*t)/E, x(t))
looking at that again, it looks like a pretty straightforward DE though, wouldn't the solution just be x(t) = A*B*exp(D*t)/(D*E)+k, where k is a constant of integration?
Originally posted by: RaynorWolfcastle
Originally posted by: Heisenberg
I'd try to use Maple first to do it. It's much simpler to use than Mathematica.
like I said, matlab's symbolics are handled by a maple library so if all he has is matlab, he can still use that to solve the problem. If I remember my Maple correctly, it will look something like:
dsolve(diff(x(t),t)=A*B*exp(D*t)/E, x(t))
looking at that again, it looks like a pretty straightforward DE though, wouldn't the solution just be x(t) = A*B*exp(D*t)/(D*E)+k, where k is a constant of integration?
Both the Euler and Runga-Kutta methods are numerical methods for solving DE's. If they want you to solve it numerically rather than analytically then you'll probably have to use Matlab or Mathematica.Originally posted by: simms
I have B = 1 L/min, Vb = 50 L, Vl = 2 L, C1 = 0.5 g/L, but no idea of an initial condition.. and it says "Substitute equation 3 into equation 2 and solve the ODE by Standard Euler or Runge-Kutta methods. You can use Mathematica for this purpose." .
Originally posted by: Heisenberg
Both the Euler and Runga-Kutta methods are numerical methods for solving DE's. If they want you to solve it numerically rather than analytically then you'll probably have to use Matlab or Mathematica.Originally posted by: simms
I have B = 1 L/min, Vb = 50 L, Vl = 2 L, C1 = 0.5 g/L, but no idea of an initial condition.. and it says "Substitute equation 3 into equation 2 and solve the ODE by Standard Euler or Runge-Kutta methods. You can use Mathematica for this purpose." .
No, I meant Matlab. I don't think Maple can solve DE's numerically, but I could be wrong.Originally posted by: simms
Originally posted by: Heisenberg
Both the Euler and Runga-Kutta methods are numerical methods for solving DE's. If they want you to solve it numerically rather than analytically then you'll probably have to use Matlab or Mathematica.Originally posted by: simms
I have B = 1 L/min, Vb = 50 L, Vl = 2 L, C1 = 0.5 g/L, but no idea of an initial condition.. and it says "Substitute equation 3 into equation 2 and solve the ODE by Standard Euler or Runge-Kutta methods. You can use Mathematica for this purpose." .
I am using Matlab. Did you mean maple?
Originally posted by: hypn0tik
Do you really need Matlab for that differential equation?
Edit: I'm assuming A, B, D and E are constants?