-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.go
39 lines (28 loc) · 1.08 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//This file contains all the constants and init files
package berlin
import (
"fmt"
"math"
)
const (
gamma0 = 1.7595e11 // Gyromagnetic ratio of electron, in rad/Ts
mu0 = 4 * math.Pi * 1e-7 // Permeability of vacuum in Tm/A
muB = 9.2740091523E-24 // Bohr magneton in J/T
kb = 1.3806488E-23 // Boltzmann's constant in J/K
qe = 1.60217646E-19 // Electron charge in C
)
func init() {
fmt.Println(`
Copyright (C) 2015 Jonathan Leliaert
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3 of the License
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see [http:fmt.Println(www.gnu.org/licenses/].
contact: [email protected]
`)
}