differential-equations

Using the solution of a differential equation in two separate plot commands in Mathematica

I've encountered a problem while trying to use the answer from a NDSolve in two separate plot commands. To illustrate the problem, I'll use a simple differential equation and only one plot command. If I write something like this: {Plot[x[t], {t, 0, 10}], x[4]} /. NDSolve[{x'[s] == - x[s], x[0] == 1}, x, {s, 0, 10}] It solves the equa...

Solving partial differential equations using C#

I am working on a project (C# and .NET Framework) which requires me to solve some partial differential equations. Are there any specific libraries based on .NET Framework that I could see and make my work simpler? I have worked with MATLAb and solving partial differential equations is very straightforward there. How can I solve this pro...

Partial differential equations & lineralization?

I'm implementing a series of Partial Differential Equations solver / numerical algorithms. I'm trying to figure out what algorithms can be easily discretized + solved as linear systems. Anyone have pointeres to books / articles on this? Thanks! ...

assigning in system of differential equations

hi every one! when i solve numerically a system of two differential equations: s1:=diff(n[Di](t), t)=...; s2:=diff(n[T](t), t)=...; ics:={...}; #initial condition. sys := {s1, s2, ics}: sol:=dsolve(sys,numeric); with respect to "t",then the solution (for example)for "t=4" is of the form, sol(4): [t=4, n1(t)=const1, n2(t)=const2]. ...

How to solve a differential equation with MATLAB

i have a problem. that is : y"^2 + 2*y'+ 3*y = sin(x), y'(0)=0, y(0)=1 I want solve this problem with MATLAB but I can't. Can you help me ? ...

Parallelize resolution of differential equation in Python

hi, i am solving a system of ordinary differential equations using the odeint function. Is it possible (and if yes how) to parallelize easily this kind of problem? ...

Help with symplectic integrators

I'm trying to develop a physics simulation and I want to implement a fourth-order symplectic integration method. The problem is that I must be getting the math wrong, since my simulation is not working at all when using the symplectic integrator (as compared to a fourth-order Runge-Kutta integrator that works reasonably well for the simu...

Solving an ODE using matlab

Hi all, I have the following ODE: b'(t) + k16*b(t) = k15*a(t) where k15 and k16 are constants. Any idea on how to solve it? Thanks! Amit ...

Numerically Solving a Second Order Nonlinear ODE

Okay, I have this not so pretty 2nd order non-linear ODE I should be able to solve numerically. f''(R)+(2/R)f'(R)=(.7/R)((1/sqrt(f))-((0.3)/sqrt(1-f))), f'(0)=1, f(1)=1 I was thinking of breaking this guy up into a system of two first order ODE's and then solve, but I have no idea how to set this up. What method should I use to set up ...

How to solve this non-linear differential equation?

Hi, I'm trying to solve this non-linear differential equation using substitution y/x to t. However, I can't solve this equation. xy' = (y/x)^3 + y How to solve this equation and what's the general solution? Thanks. ...