This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
__version__ = '0.0.1' | |
## import required libraries | |
import pandas | |
from decimal import Decimal | |
import numpy as np | |
## CONSTANT | |
PROGRAM_DESCRIPTION = ''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Weizsäcker-Betheの質量公式 | |
$$ | |
B(Z,A) | |
= a_1 A | |
- a_2 A^{2/3} | |
- a_3 \frac{(A-2Z)^2}{A} | |
- a_4 \frac{Z^2}{A^{1/3}} | |
+ \delta (A) | |
$$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Place your snippets for latex here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" An example for a vimrc file. | |
" | |
" Maintainer: Bram Moolenaar <Bram@vim.org> | |
" Last change: 2001 Jul 18 | |
" | |
" To use it, copy it to | |
" for Unix and OS/2: ~/.vimrc | |
" for Amiga: s:.vimrc | |
" for MS-DOS and Win32: $VIM\_vimrc | |
" for OpenVMS: sys$login:.vimrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module BethebBloch | |
import Unitful: Quantity, 𝐋, 𝐌, 𝐓, @u_str | |
export ∂ᵨₓE, ∂ₓE, calcrange, energyloss | |
uLength = Quantity{<:Number,𝐋} | |
uEnergy = Quantity{<:Number,𝐋^2 * 𝐌 * 𝐓^(-2)} | |
uDensity = Quantity{<:Number,𝐌 * 𝐋^(-3)} | |
uStoppingPower = Quantity{<:Number,𝐋^4 * 𝐓^(-2)} | |
mₚ = 938.272u"MeV/c^2" |