https://github.com/guohaoxuan/nuclides.jl
https://github.com/guohaoxuan/nuclides.jl
julia
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/guohaoxuan/nuclides.jl
- Owner: GuoHaoxuan
- License: mit
- Created: 2023-04-30T10:57:58.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-01T11:00:49.000Z (almost 3 years ago)
- Last Synced: 2025-07-06T02:14:55.402Z (12 months ago)
- Topics: julia
- Language: Julia
- Homepage: https://haoxuanguo.github.io/Nuclides.jl/
- Size: 35.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Nuclides.jl
*A presentation for nuclides in Julia.*
![codecov workflow][codecov-workflow-img]
[![codecov][codecov-img]][codecov-url]
[codecov-workflow-img]: https://github.com/HaoxuanGuo/Nuclides.jl/actions/workflows/codecov.yml/badge.svg
[codecov-img]: https://codecov.io/gh/HaoxuanGuo/Nuclides.jl/branch/main/graph/badge.svg?token=MsF281T0ln
[codecov-url]: https://codecov.io/gh/HaoxuanGuo/Nuclides.jl
## Usage
```julia
using Nuclides
# Define a nuclide by a nuclide string
C12 = nuclide"C-12"
# It presents as a beautiful upperscript format
C12 # nuclide"¹²C"
# Copy and paste this supperscript format is also compatible
C12 = nuclide"¹²C"
# get nuclide info by functions
C12 |> atomic_number # 6
C12 |> mass_number # 12
C12 |> metastable_state # 0
C12 |> neutron_number # 6
```