« View all new features in Mathematica 9  previous  |  next 
New in Mathematica 9Time Series and Stochastic Differential Equations

RLC Circuit Driven by a Periodic Signal and White Noise 

Consider an electrical circuit consisting of a resistor, inductor, and capacitor connected in series. The circuit is under external voltage, which is a superposition of a periodic signal and white noise.

In[1]:=
Click for copyable input
X
Out[1]=

Define the parameters of the model.

In[2]:=
Click for copyable input
X

Compute the mean function, i.e. the mean value of the charge of the capacitor as a function of time.

In[3]:=
Click for copyable input
X
Out[3]=

Solve the deterministic problem in the absence of noise and compare it with the mean function.

In[4]:=
Click for copyable input
X
In[5]:=
Click for copyable input
X
Out[5]=

Compute the variance function.

In[6]:=
Click for copyable input
X
Out[6]=

Simulate the model using the strong Kloeden-Platen-Schurz scheme of order 1.5.

In[7]:=
Click for copyable input
X
Out[7]=

Visualize the simulated paths.

In[8]:=
Click for copyable input
X
Out[8]=

Visualize a 95% confidence band about the mean function.

In[9]:=
Click for copyable input
X
Out[9]=

Combine the plots together.

In[10]:=
Click for copyable input
X
Out[10]=