| VFx_sech2 | VDx_sech2 | VEx_sech2 |
|
| Function | Square of the hyperbolic secant function |
|
| Syntax C/C++ | #include <VFmath.h>
int VF_sech2( fVector Y, fVector X, ui size );
int VFx_sech2( fVector Y, fVector X, ui size, float A, float B, float C ); |
| C++ VecObj | #include <OptiVec.h>
int vector<T>::sech2( const vector<T>& X );
int vector<T>::x_sech2( const vector<T>& X, const T& A, const T& B, const T& C ); |
| Pascal/Delphi | uses VFmath;
function VF_sech2( Y, X:fVector; size:UInt ): IntBool;
function VFx_sech2( Y, X:fVector; size:UInt; A, B, C:Single ): IntBool; |
|
| Description | normal versions: Yi = sech2( Xi )
expanded versions: Yi = C * sech2( A*Xi+B )
The sech2 function is used in physics, e.g., to describe the shape of ultrashort light pulses. Compared to a Gaussian or Lorentzian pulse shape of the same autocorrelation width (see VF_autocorr), the sech2 function has the smallest FWHM (full width to half maximum). |
|
| Error handling | These functions should be error-proof. |
|
| Return value | always FALSE (0) |
|
|