File:Gamma Absolute.svg
Summary
| Description |
English: Absolute for Gamma function over complex plane. |
| Date | |
| Source |
Own work |
| Author | IkamusumeFan |
| SVG development | |
| Source code | Python code# Author: Ika, 2014-02-08
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import math
from scipy.special import gamma as Gamma
from matplotlib import cm
import matplotlib.pyplot as plt
import scipy.special as sp
from cmath import *
fig = plt.figure()
ax = fig.gca(projection='3d')
Q = []
# Draw the function curve.
X = np.arange(-5., 5., 0.1)
Y = np.arange(-5., 5., 0.1)
X, Y = np.meshgrid(X, Y)
xn,yn=X.shape
Z = X*0
for x in range(xn):
for y in range(yn):
z = complex(X[x,y], Y[x,y])
Z[x,y]=np.clip(abs(Gamma(z)), 0, 24)
a = ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap=cm.jet, linewidth=0.1)
Q.append(a)
ax.set_xlim3d(-5,5)
ax.set_ylim3d(-5,5)
ax.set_zlim3d(0,24)
ax.set_xlabel('x')
ax.set_ylabel('y')
ax.set_zlabel(r'$|\Gamma(x+iy)|$')
plt.savefig("Gamma_Absolute.svg")
|
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.