合金の組成を元に質量を計算します.
python 3.5.2
リポジトリをクローン後,適当にchmod
で実行権限を与えます.
最終的に得たい合金の質量と,合金の組成を用意します.
例として,Zn60Mg35Ho5を25.0g得たいとすると,3元系なので第2引数には3を与えて,
$ ./composition 25.0 3 Zn Mg Ho 60 35 5
Magnesium 3.797746717752169
Holmium 3.6815680573533656
Zinc 17.520685224894464
と計算してくれます.単位はgです.