00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00036 #ifndef math_funcs_h
00037 #define math_funcs_h
00038
00039 #include "matpackI.h"
00040
00041
00042
00043 Numeric fac(const Index n);
00044
00045 Index integer_div( const Index& x, const Index& y );
00046
00047 Numeric last( ConstVectorView x );
00048
00049 Index last( const ArrayOfIndex& x );
00050
00051 void linspace(
00052 Vector& x,
00053 const Numeric start,
00054 const Numeric stop,
00055 const Numeric step );
00056
00057 void nlinspace(
00058 Vector& x,
00059 const Numeric start,
00060 const Numeric stop,
00061 const Index n );
00062
00063 void nlogspace(
00064 Vector& x,
00065 const Numeric start,
00066 const Numeric stop,
00067 const Index n );
00068
00069 Numeric AngIntegrate_trapezoid(ConstMatrixView Integrand,
00070 ConstVectorView za_grid,
00071 ConstVectorView aa_grid);
00072
00073 Numeric AngIntegrate_trapezoid(ConstVectorView Integrand,
00074 ConstVectorView za_grid);
00075
00076 Numeric AngIntegrate_trapezoid_opti(ConstMatrixView Integrand,
00077 ConstVectorView za_grid,
00078 ConstVectorView aa_grid,
00079 ConstVectorView grid_stepsize);
00080
00081 Numeric sign( const Numeric& x );
00082
00083 #endif // math_funcs_h