<stdlib.h> #include <math.h> #include <complex.h>// floor /* based on c++ program from : [[:File:Color_complex_plot.jpg]] by Claudio Rocchini gcc d.c -lm -Wall
version of File:Colorcomplexplot.jpg. In this version the real axis is directing right. And contours bring more information. #include <complex> #include <fstream>
This is the color encoding used in the Complex log image above. Each complex value is represented as a particular color. The arg (polar coordinate angle)
# complex gamma function # colorplot import math, cmath from cmath import exp, sin, cos from math import pi, tanh from scipy.special import gamma import