This file is indexed.

/usr/share/genius/examples/complex-analysis-mesh.gel is in genius-common 1.0.23-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Category: Complex Analysis
# Name: Visualizing complex mappings, point mesh
#
# Shows where either a rectangular or a circular mesh of points is mapped
# under a complex mapping.  It is also possible to just show the boundary
# points.  Source points in blue, target in red.
#

#The function to plot
#function f(z) = z+(0.3+0.5i);
#function f(z) = 2*z;
#function f(z) = 1i*z;
#function f(z) = (3+1i)*z;
#function f(z) = (3+1i)*z+(0.3+0.5i);
#function f(z) = 4*z^2;
#function f(z) = 10*z^3;
function f(z) = 4*(z-0.2)*(z+0.2);
#function f(z) = 10*z^2*(z-0.2)
#function f(z) = 0.25/z;
#function f(z) = 0.25/conj(z);
#function f(z) = exp(z);
#function f(z) = sin(3*z);

#approximately square grid
LinePlotWindow = [-1.3,1.3,-1.0,1.0];

#shape = "circle";
shape = "rectangle";

# if to plot only outline of the rectangle or the circle
only_outline = false;


#the rectangle we transform
plot_range = [-0.3,0.3,-0.2,0.2];
plot_stepx = 0.0125;
plot_stepy = 0.0125;

#the circle we transform
plot_circle_rad = 0.3; #center is 0
plot_steptheta = 0.05;
plot_stepr = 0.01;
# The theta step corresponds to the theta step on the outside of the circle.



#in outline mode make steps 1/4 the size
if only_outline then (
	plot_stepx = plot_stepx/4;
	plot_stepy = plot_stepy/4;
	plot_steptheta = plot_steptheta/4;
);



LinePlotDrawLegends = false;
LinePlotClear();
PlotWindowPresent(); # Make sure the window is raised

points_from = null;
points_to = null;

if shape == "rectangle" then (
	if only_outline then (
		for x = plot_range@(1) to plot_range@(2) by plot_stepx do (
			y = plot_range@(3);
			w = f(x+1i*y);
			points_from = [points_from;[x,y]];
			points_to = [points_to;[Re(w),Im(w)]];
			y = plot_range@(4);
			w = f(x+1i*y);
			points_from = [points_from;[x,y]];
			points_to = [points_to;[Re(w),Im(w)]]
		);
		for y = plot_range@(3)+plot_stepy to plot_range@(4)-plot_stepy by plot_stepy do (
			x = plot_range@(1);
			w = f(x+1i*y);
			points_from = [points_from;[x,y]];
			points_to = [points_to;[Re(w),Im(w)]];
			x = plot_range@(2);
			w = f(x+1i*y);
			points_from = [points_from;[x,y]];
			points_to = [points_to;[Re(w),Im(w)]]
		)
	) else (
		for x = plot_range@(1) to plot_range@(2) by plot_stepx do (
			for y = plot_range@(3) to plot_range@(4) by plot_stepy do (
				w = f(x+1i*y);
				points_from = [points_from;[x,y]];
				points_to = [points_to;[Re(w),Im(w)]]
			)
		)
	)
) else if shape == "circle" then (
	if only_outline then (
		for theta = 0 to 2*pi by plot_steptheta do (
			z = plot_circle_rad*exp(1i*theta);
			w = f(z);
			points_from = [points_from;[Re(z),Im(z)]];
			points_to = [points_to;[Re(w),Im(w)]]
		)
	) else (
		for r = 0 to plot_circle_rad by plot_stepr do (
			t = r/plot_circle_rad;
			for theta = 0 to 2*pi by plot_steptheta*(1/(t+0.000001)) do (
				z = r*exp(1i*theta);
				w = f(z);
				points_from = [points_from;[Re(z),Im(z)]];
				points_to = [points_to;[Re(w),Im(w)]]
			)
		)
	)
);

LinePlotDrawPoints(points_from,"color","blue");
LinePlotDrawPoints(points_to,"color","red");