How can we calculate the values for the Gamma function using Quaternions on Mathematica?
For example:
<<Quaternions`; (* load package *)
Gamma[5] = 24
N[Gamma[I]] = -0.15495 - 0.498016 I
N[Gamma[1 + 2 I]] = 0.151904 + 0.0198049 I
N[Gamma[Quaternion[5, 0, 0, 0]]] = Gamma[Quaternion[5., 0., 0., 0.]] (* which is wrong *)
Specially, how can we calculate
Gamma[Quaternion[1, 2, 3, 4]]?
Attempts:
N[Gamma[FromQuaternion[Quaternion[1, 2, 0, 0]]]] (* works *)
N[Gamma[FromQuaternion[Quaternion[1, 2, 3, 4]]]] (* doesn't work *)
QuaternionPower[x_, y_] := E^(y ** Log[x])
QuaternionGamma[z_] :=
Integrate[QuaternionPower[E, -x + Log[x]*(z - 1)], {x, 0, Infinity}]
N[QuaternionGamma[FromQuaternion[Quaternion[1, 2, 0, 0]]]] =
0.151904 + 0.0198049 I (* works *)
N[QuaternionGamma[FromQuaternion[Quaternion[1, 2, 3, 0]]]] =
ConditionalExpression[Gamma[(1. + 2. I) + 3. J], Re[J] > -0.333333] (* doesn't work *)
Gamma[(1. + 2. I) + 3. J + 4. K]
for me and I thought it's some special form. $\endgroup$(1. + 2. I) + 3. J + 4. K
is just the open form ofN[Quaternion[1, 2, 3, 4]]
. $\endgroup$