Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.545.826 Times

Astro::Constants 0.09

  Date Added: May 20, 2010  |  Visits: 684

Astro::Constants

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)



Astro::Constants is a Perl module that contains physical constants for use in Astronomy. SYNOPSIS use Astro::Constants::CGS qw(:long); print "The Schwarzschild radius of the sun is ", 2 * GRAVITATIONAL * SOLAR_MASS / LIGHT_SPEED ** 2, " centimetresn"; or use Astro::Constants::MKS qw(:short); print "The Schwarzschild radius of the sun is ", 2 * $A_G * $A_msun / $A_c ** 2, " metresn"; This module provides a large number of physical constants which are useful to Astronomers. The module itself is essentially a wrapper around the astroconst package of Jeremy Balin. It allows you to choose between constants in units of centimetres/grams/seconds with Astro::Constants::CGS and metres/kilograms/seconds with Astro::Constants::MKS. It also allows you to select two different methods of refering to the constants using the import tags :long and :short. The :short tag refers to the constants in the normal perl variable style, such as $A_G for the gravitational constant and $A_c for the speed of light in a vaccuum. The naming convention for the :short constant is A_ prepended to the symbol character. The :long tag refers to the constants with longer descriptive names in ALL_CAPS that have been created with the use constant pragma. As in the example, GRAVITATIONAL is the gravitational constant and LIGHT_SPEED is the speed of light. This is a new addition to the Astroconst package and, at present, we are following a naming convention of OBJECT_PROPERTY and SYMBOL_SUBSCRIPT. Opinions on this matter will be listened to and if we decline to agree, you can always change it yourself, as described in "EXTENDING THE DATA SET". The :long and the :short tags import the same constants. You may choose individual constants and even mix and match (I havent tested this) by importing them in the use statement. One of the problems with the long constants is that they are not interpolated in double quotish situations because they are really inlined functions..

Requirements: No special requirements
Platforms: Linux
Keyword: Astroconstants Constants Libraries Light Module Perl Perl Module Physical Physical Constants Programming Speed
Users rating: 0/10

License: Freeware Size: 12.29 KB
USER REVIEWS
More Reviews or Write Review


ASTRO::CONSTANTS RELATED
Libraries  -  OpenGeoDB Perl module 0.4
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius..
3.07 KB  
Libraries  -  Language::Logo 1.000
Language::Logo Perl module is an implementation of the Logo programming language. SYNOPSIS use Language::Logo; my $lo = new Logo(update => 20); $lo->command("setxy 250 256"); $lo->command("color yellow"); $lo->command("pendown"); #...
16.38 KB  
Libraries  -  XML::Grove 0.46 Alpha
XML::Grove is a Perl module with Perl-style XML objects. SYNOPSIS use XML::Grove; # Basic parsing and grove building use XML::Grove::Builder; use XML::Parser::PerlSAX; $grove_builder = XML::Grove::Builder->new; $parser =...
27.65 KB  
Libraries  -  B::Lint 1.09
B::Lint module contains Perl lint. SYNOPSIS perl -MO=Lint[,OPTIONS] foo.pl The B::Lint module is equivalent to an extended version of the -w option of perl. It is named after the program lint which carries out a similar process for C...
17.41 KB  
Modules  -  Flickr API 5.x-1.x-dev 1.0
You don't need this module unless another module requires it or you want to develop a new Flickr-based module.To use this module a Flickr API key is required.InstallationUnpack in your modules folder (usually /sites/all/modules/) and enable under...
 
Libraries  -  SVN::RaWeb::Light::Help 0.60001
SVN::RaWeb::Light::Help is Perl module to generate the Help HTML for SVN::RaWeb::Light. SYNOPSIS Warning! This moduls is auto-generated. FUNCTIONS print_data() Prints the HTML data to the standard output..
15.36 KB  
Network & Internet  -  MyCMS perl module 1.0
MyCMS perl module provides the MN::CMS Perl module used by the MyCMS. MyCMS perl module contains Perl object classes to manage the data of MyCMS (such as articles, links, and images). MN::CMS is a perl module that allows you to manage an...
16.38 KB  
Version Control Tools  -  SVN-RaWeb-Light 0.60001
SVN-RaWeb-Light is a Perl module, that once installed and driven by a CGI script provides a lightweight Web-based browser for remote Subversion repositories, not unlike the default HTML one for http:// repositories. (with some improvements). If...
15.36 KB  
Libraries  -  Module::Reload::Selective 1.02
Module::Reload::Selective can reload Perl modules during development. SYNOPSIS Instead of: use Foobar::MyModule; Do this: use Module::Reload::Selective; &Module::Reload::Selective->reload(qw(Foobar::MyModule)); Or, if you need the...
10.24 KB  
Libraries  -  perlrpcgen 0.71
perlrpcgen is a Perl module that can generate Perl interfaces from ONC RPC interface definitions. SYNOPSIS perlrpcgen [--makefile] [--all] [--client] [--server] [--data] [--constants] [--module module] [--typemap typemap] [--fork] [--perl...
37.89 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB