Spectral Type, Temperature, and Color Functions
 typeAndTemp014view, link (27.3 KB, 700×920) source (96.5 KB)Wed, 20 Oct 04, 5:30pm UTC 
 

Added getMassFromLuminosity, getLuminosityFromRadiusAndTemp, and getTempFromLuminosityAndRadius. Also tweaked getRadiusFromTempAndLuminosity to be more consistent with other functions (it now uses an effective solar temperature of 5808.3 K). Note that getLuminosityFromRadiusAndTemp and getTempFromLuminosityAndRadius are not demonstrated, though they have been tested.

 
 typeAndTemp012view, link (27.1 KB, 700×920)  Tue, 19 Oct 04, 10:53pm UTC 
 

Added getTempFromLuminosity as an inverse to getLuminosityFromTempAndClass for main sequence stars. Also added getTempFromRadius, which returns the temperature associated with main sequence star of a given radius. Also added getLuminosityFromMass, which returns the luminosity of a main sequence star given its mass.

 
 typeAndTemp010view, link (25 KB, 700×860)  Wed, 6 Oct 04, 5:01pm UTC 
 

added a bolometric correction function

 
 typeAndTemp009view, link (24.8 KB, 700×800)  Fri, 2 Jul 04, 9:44pm UTC 
 

Added the following functions:

getMvFromTempAndLuminosity
getLuminosityFromTempAndClass
getRadiusFromTempAndLuminosity

 
 typeAndTemp008view, link (23.8 KB, 700×600)  Fri, 25 Jun 04, 1:50pm UTC 
 

getLuminosityFromTempAndMv works now. getColorFromTemp now uses polynomials to calculate the color instead of using a lookup table.

 
 typeAndTemp005view, link (24.2 KB, 700×600)  Mon, 21 Jun 04, 10:29pm UTC 
 

Now the function getTempFromSpectralType will accept a number (between 0 and 70) as the argument. If a number is passed the luminosity class can be specified as a second parameter, e.g. getTempFromSpectralType(42, "V") returns 5830.

Furthermore, the object returned by the getSpectralTypeFromTemp function – which has type, number, and class properties – now adds another property, spectralTypeNumber, which is a number between 0 and 70 that corresponds to the spectral type.

 
 typeAndTemp004view, link (24.1 KB, 700×600)  Tue, 15 Jun 04, 4:03pm UTC 
 typeAndTemp002view, link (22.4 KB, 700×600)  Mon, 7 Jun 04, 3:36pm UTC 
 typeAndTemp001view, link (18.7 KB, 600×400)  Fri, 4 Jun 04, 10:02pm UTC