Changeset 909 in Sophya for trunk/SophyaLib/SkyT/nupower.cc
- Timestamp:
- Apr 13, 2000, 4:10:46 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyT/nupower.cc
r669 r909 1 1 //-------------------------------------------------------------------------- 2 2 // File and Version Information: 3 // $Id: nupower.cc,v 1. 5 1999-11-29 16:59:10ansari Exp $3 // $Id: nupower.cc,v 1.6 2000-04-13 14:10:44 ansari Exp $ 4 4 // 5 5 // Description: … … 21 21 #include "nupower.h" 22 22 23 //---------------- 24 // Constructor -- 25 //---------------- 23 24 /*! 25 * \class SOPHYA::PowerLawSpectra <BR> 26 * This class corresponds to a power law radiation spectrum. 27 */ 26 28 PowerLawSpectra::PowerLawSpectra() 27 29 { 28 30 } 29 30 PowerLawSpectra::PowerLawSpectra(double a, double b, double nu0, double dnu, double numin, double numax) 31 /*! Constructor: The arguments corresponds to the Power Law Spectrum 32 equation: 33 <a name="psldef"> </a> 34 \f[ 35 \hbox{flux}(\nu) = A ({\nu-\nu_0\over \delta\nu})^B 36 \f] 37 */ 38 PowerLawSpectra::PowerLawSpectra(double A, double B, double nu0, double dnu, double numin, double numax) 31 39 : RadSpectra(numin, numax) 32 40 { 33 _a = a;34 _b = b;41 _a = A; 42 _b = B; 35 43 _nu0 = nu0; 36 44 _dnu = (dnu > 1.e-19) ? dnu : 1.; … … 41 49 { 42 50 } 43 51 /*! Flux function according to the <a href="#psldef"> above </a> 52 equation */ 44 53 double 45 54 PowerLawSpectra::flux(double nu) const
Note:
See TracChangeset
for help on using the changeset viewer.