-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_radon.py
40 lines (31 loc) · 913 Bytes
/
_radon.py
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
40
import numpy
import sympy
from ..helpers import article
from ._helpers import S2Scheme, register
_source = article(
authors=["J. Radon"],
title="Zur mechanischen Kubatur",
journal="Monatshefte für Mathematik",
year="1948",
volume="52",
pages="286-300",
issn="0026-9255",
issne="1436-5081/e",
url="https://eudml.org/doc/176796",
)
frac = sympy.Rational
sqrt = numpy.vectorize(sympy.sqrt)
def radon(alpha=0):
r = sqrt(frac(alpha + 4, alpha + 6))
s = sqrt(frac(alpha + 4, 4 * (alpha + 6)))
t = sqrt(frac(3 * (alpha + 4), 4 * (alpha + 6)))
A = frac(4, (alpha + 4) ** 2)
B = frac((alpha + 2) * (alpha + 6), 6 * (alpha + 4) ** 2)
d = {
"zero2": [[A]],
"c2_a0": [[B], [r]],
# ERR Stroud is missing +- in front of t.
"sxy": [[B], [s], [t]],
}
return S2Scheme(f"Radon({alpha})", d, 5, _source)
register([radon])