|
CppNoddy
0.92
|
Solves the Airy equation. More...
Go to the source code of this file.
Functions | |
| int | main () |
Solves the Airy equation.
![\[ f''(x) - xf(x) = 0 \]](form_242.png)
on the negative real axis over the range [-10,0] then pushes the data into a OneD_GenMesh object and integrates the result. The integral is checked against the table in Abramowitz & Stegun:
![\[ \int_{-10}^0 \mbox{Ai}(s) \, \mbox{d}s \approx 0.7656984 \]](form_243.png)
The finite-difference solution of the Airy equation and the trapezoidal scheme used in the integration are both second order.
Definition in file 1DNodeMeshAiry_lapack.cpp.
| int main | ( | ) |
Definition at line 22 of file 1DNodeMeshAiry_lapack.cpp.
References CppNoddy::OneD_Node_Mesh< _Type, _Xtype >::coord(), CppNoddy::OneD_Node_Mesh< _Type, _Xtype >::integral2(), CppNoddy::OneD_Node_Mesh< _Type, _Xtype >::set_vars_from_vector(), CppNoddy::BandedLinearSystem< _Type >::solve(), and CppNoddy::Utility::uniform_node_vector().
1.9.5
© 2012
R.E. Hewitt