Skip to content

Commit 48ca71e

Browse files
committed
Updated ToPython to latest version
1 parent 27755cb commit 48ca71e

File tree

2 files changed

+135
-129
lines changed

2 files changed

+135
-129
lines changed

ToPython.wl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ PythonForm[Arg[a_]] := format["numpy.angle(``)", a];
6161
PythonForm[SphericalHarmonicY[l_, m_, a_, b_]] := format[
6262
"special.sph_harm(``, ``, (``) % (2 * numpy.pi), (``) % numpy.pi)",
6363
m, l, b, a];
64+
PythonForm[Gamma[a_]] := format["special.gamma(``)", a];
65+
PythonForm[Gamma[a_, b_]] := format["special.gamma(`1`) * special.gammaincc(`1`, `2`)", a, b];
6466
PythonForm[BesselI[a_, b_]] := format["special.iv(``, ``)", a, b];
6567
PythonForm[BesselJ[a_, b_]] := format["special.jv(``, ``)", a, b];
6668
PythonForm[BesselK[a_, b_]] := format["special.kn(``, ``)", a, b];

0 commit comments

Comments
 (0)