Chemis...sotope(3pm)
π Chemistry::Isotope β the table of the isotopes exact mass data π
okay bestie, gather round, because this is a User Contributed Perl Documentation page for Chemistry::Isotope (section 3pm), and it is genuinely so useful it's giving main character energy. it's the module that knows exactly how much every nuclide weighs. no cap. π§β¨
β¨ SYNOPSIS β¨
here's the vibe, look:
use Chemistry::Isotope ':all';
# get the exact atomic mass for an isotope
my $m = isotope_mass(235, 92); # 235.043923094753
my $ab_table = isotope_abundance('C');
while (my ($A, $percent_ab) = each %$ab_table) {
print "$A\t$percent_ab\n";
}
# this should print (the order may vary):
# 12 98.93
# 13 1.07
like. isotope_mass(235, 92) hands you 235.043923094753 and honestly? iconic. π
πΈ DESCRIPTION πΈ
so this module is carrying the exact mass data from the table of the isotopes, and it has two things you can export:
isotope_massβ give it a mass number (A) and an atomic number (Z), and it returns the mass of that atom in mass units πisotope_abundanceβ give it an element symbol, and it returns a table with the natural abundance of that element's isotopes π¦
the mass table is a whole big deal: it includes 2931 nuclides, and it's taken from <http://ie.lbl.gov/txt/awm95.txt> β that's G. Audi and A.H. Wapstra, Nucl. Phys. A595, 409, 1995. (yes bestie, real physics, real citation, we love to see it.)
the natural abundance table includes 288 nuclides, and it comes from the Commission on Atomic Weights and Isotopic Abundances report for the International Union of Pure and Applied Chemistry in Isotopic Compositions of the Elements 1989, Pure and Applied Chemistry, 1998, 70, 217. <http://www.iupac.org/publications/pac/1998/pdf/7001x0217.pdf> π
π₯ FUNCTIONS π₯
isotope_mass($A, $Z)
returns the mass for the atom with the given mass number and atomic number π«Ά
and if the nuclide isn't in the data table? it returns undef. no drama, just undef. π
isotope_abundance($symbol)
returns a hash reference with the natural abundance info for the isotopes of a given element. the hash keys are the mass numbers, and the values are the abundance percentages. for example, isotope_abundance('C') gives you this whole structure:
{
'13' => '1.07',
'12' => '98.93'
};
carbon said "98.93% of me is the twelve one, and I said what I said." periodt. π
β VERSION β
0.11
π SEE ALSO π
Chemistry::Atomβ go read it, bestie, it's the sibling module- The PerlMol website <http://www.perlmol.org/>
π AUTHOR π
Ivan Tubert-Brohman <itub@cpan.org> β thank you for your service, king π«‘
π COPYRIGHT π
Copyright (c) 2005 Ivan Tubert-Brohman. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
lowkey important: those same-terms-as-Perl licensing vibes are the whole deal here, so respect them fr fr.
and that's the page, bestie! it shipped as perl v5.32.1, dated 2021-05-25, in the User Contributed Perl Documentation collection under Chemis...sotope(3pm) β slay, go weigh some atoms πβ¨π
π¦ where this page comes from
- debian bookworm: libchemistry-isotope-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libchemistry-isotope-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libchemistry-isotope-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libchemistry-isotope-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libchemistry-isotope-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libchemistry-isotope-perl 0.11-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms