Spectral Integral Suite in C++
Ex_03.cpp File Reference

An example with nonconstant coefficients and comparissons with analytical solution. More...

Detailed Description

An example with nonconstant coefficients and comparissons with analytical solution.

Solving the system:

\[ \mathrm D u(y) + \frac{1}{y^2 +1}u(y) \;=\; 0, \]

with boundary condition:

\[ u(-1) = 1.0. \]

Anaytical solution is given by:

\[ u(y) = \exp\left(-\mathrm{tan}^{-1}(y)\,-\, \mathrm{tan}^{-1}(1) \right) \]

where \( \mathrm D = \mathrm d/\mathrm d y \).

Ex_03.svg
Comparing analytical and solutions from SIS

width=500cm height=500cm

Definition in file Ex_03.cpp.

Include dependency graph for Ex_03.cpp:

Go to the source code of this file.

Typedefs

typedef complex< double > Cd_t
 
typedef valarray< double > Vd_t
 

Functions

int main ()
 

Typedef Documentation

◆ Cd_t

typedef complex<double> Cd_t

Definition at line 17 of file Ex_03.cpp.

◆ Vd_t

typedef valarray<double> Vd_t

Definition at line 18 of file Ex_03.cpp.

Function Documentation

◆ main()