File:Gamma Absolute.svg

Uploaded by IkamusumeFan
Upload date 2014-02-08T22:05:59Z
MIME type image/svg+xml
Dimensions 720 × 540 px
File size 8.8 MB

Summary

Description
English: Absolute for Gamma function over complex plane.
Date
Source Own work
Author IkamusumeFan
SVG development
InfoField
 The SVG code is valid.
 This plot was created with Matplotlib.
Source code
InfoField

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:
w:en:Creative Commons
attribution share alike
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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

8 February 2014

9,221,234 byte

image/svg+xml

5905bcfb020da179cf05551bb3003a29ea6f9c8f

Category:CC-BY-SA-3.0 Category:Self-published work Category:Surface plots of complex gamma and related functions Category:Valid SVG created with Matplotlib code