-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sim: verification of the independence of Nyquist collision integrals …
…wrt differential beta2
- Loading branch information
1 parent
2c6bd6f
commit db5fded
Showing
2 changed files
with
43 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import numpy as np | ||
def beta2rms(beta2a, beta2b): | ||
return -np.sqrt(beta2a**2 + beta2b**2) | ||
|
||
def beta2_complementary(beta2rms, beta2a): | ||
tmp = 2*beta2rms**2-beta2a**2 | ||
assert(tmp>0) | ||
return -np.sqrt(tmp) |
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