PHP Classes

PHP Linus Pauling Diagram: Compute an atomic number Linus Pauling diagram

Recommend this page to a friend!
  Info   View files Documentation   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 34 All time: 10,948 This week: 555Up
Version License PHP version Categories
linus-pauling-ed 1.0GNU General Publi...5PHP 5, Physics
Description 

Author

This class can compute an atomic number Linus Pauling diagram.

It can take as parameter a given atomic number.

The class returns a string with the Linus Pauling distribution.

Innovation Award
PHP Programming Innovation award nominee
May 2021
Number 5
Linus Pauling diagrams are useful used by chemists to analyze the characteristics and properties of atoms.

This class provides a PHP implementation of an algorithm to generate Linus Pauling diagram string sequences.

Manuel Lemos
Picture of Carlos Artur Curvelo da Matos
  Performance   Level  
Name: Carlos Artur Curvelo da ... is available for providing paid consulting. Contact Carlos Artur Curvelo da ... .
Classes: 19 packages by
Country: Portugal Portugal
Age: 46
All time rank: 288639 in Portugal Portugal
Week rank: 411 Up3 in Portugal Portugal Up
Innovation award
Innovation award
Nominee: 13x

Winner: 2x

Documentation

Linus Pauling PHP Diagram

Returns the Linus Pauling electronic distribution for a given atomic number.

Usage

Just use the static method, providing a single integer as argument, which corresponds to the atomic number of the element, to find the LP distribution. Example:

use Linus\Pauling\ED;

require __DIR__ . '/vendor/autoload.php';

$element = Linus\Pauling\ED::distribute(34);

echo $element;

/*
RETURNS: 1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p4
*/

  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file ED.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:34
This week:0
All time:10,948
This week:555Up