File:Doyam10map4bT100.png

From TORI
Jump to navigation Jump to search

Original file(1,199 × 1,167 pixels, file size: 629 KB, MIME type: image/png)

Complex map of the Doya function with parameter $-1$.

$f\!=\!\mathrm{Doya}_{-1}(x\!+\!\mathrm{i} y)~$ in the $x,y$ plane is shown with lines $u\!=\!\Re(f)\!=\! \mathrm{const}$ and lines $v\!=\!\Im(f)\!=\! \mathrm{const}$.

Generators

C++ generator of the curves

// The files ado.cin and conto.cin and doya.cin should be in the working directory for the compilation of the code below:

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#define DB double
#define DO(x,y) for(x=0;x<y;x++)
using namespace std;
#include <complex>
typedef complex<double> z_type;
#define Re(x) x.real()
#define Im(x) x.imag()
#define I z_type(0.,1.)
#include "conto.cin"
#include "doya.cin"
main(){ int j,k,m,n; DB x,y, p,q, t; z_type z,c,d;
 int M=160,M1=M+1;
 int N=160,N1=N+1;
DB X[M1],Y[N1], g[M1*N1],f[M1*N1], w[M1*N1]; // w is working array.
char v[M1*N1]; // v is working array
FILE *o;o=fopen("doyam10map4b.eps","w");ado(o,82,82);
fprintf(o,"41 41 translate\n 10 10 scale\n");
DO(m,M1) X[m]=-4.+.05*(m);
DO(n,N1) Y[n]=-4.01+.05*(n);
for(m=-4;m<5;m++){if(m==0){M(m,-4.2)L(m,4.2)} else{M(m,-4)L(m,4)}}
for(n=-4;n<5;n++){     M(  -4,n)L(4,n)}
fprintf(o,".008 W 0 0 0 RGB S\n");
DO(m,M1)DO(n,N1){g[m*N1+n]=9999; f[m*N1+n]=9999;}
DO(m,M1){x=X[m]; //printf("%5.2f\n",x);
DO(n,N1){y=Y[n]; z=z_type(x,y);        
 c=Doya(-1.,z); 
 p=Re(c);q=Im(c);      
 if(p>-99. && p<99. &&  q>-99. && q<99. ){ g[m*N1+n]=p;f[m*N1+n]=q;}
        }}
fprintf(o,"1 setlinejoin 2 setlinecap\n");  p=1.;q=.9;
for(m=-6;m<5;m++)for(n=2;n<10;n+=2)conto(o,f,w,v,X,Y,M,N,(m+.1*n),-q, q); fprintf(o,".016 W 0 .6 0 RGB S\n");
for(m=0;m<6;m++) for(n=2;n<10;n+=2)conto(o,g,w,v,X,Y,M,N,-(m+.1*n),-q, q); fprintf(o,".016 W .9 0 0 RGB S\n");
for(m=0;m<6;m++) for(n=2;n<10;n+=2)conto(o,g,w,v,X,Y,M,N, (m+.1*n),-q, q); fprintf(o,".016 W 0 0 .9 RGB S\n");
for(m=1;m<5;m++)  conto(o,f,w,v,X,Y,M,N, (0.-m),-p,p); fprintf(o,".05 W .9 0 0 RGB S\n");
for(m=1;m<5;m++)  conto(o,f,w,v,X,Y,M,N, (0.+m),-p,p); fprintf(o,".05 W 0 0 .9 RGB S\n");
                   conto(o,f,w,v,X,Y,M,N, (0. ),-p,p); fprintf(o,".05 W .6 0 .6 RGB S\n");
for(m=-5;m<6;m++) conto(o,g,w,v,X,Y,M,N, (0.+m),-p,p); fprintf(o,".05 W 0 0 0 RGB S\n");
for(m=-10;m<11;m+=2) {p=.0866*(m+.33); 
    M(.67-1.66*cos(p),    1.66*sin(p))
    L(.67-1.66*cos(p+.03),1.66*sin(p+.03))}
fprintf(o,".08 W 0 .5 1 RGB S\n");
for(m=-10;m<11;m+=2) {p=.0866*(m-.33); 
    M(.67-1.66*cos(p),    1.66*sin(p))
    L(.67-1.66*cos(p-.03),1.66*sin(p-.03))}
fprintf(o,".08 W 1 .5 0 RGB S\n");
fprintf(o,"showpage\n%c%cTrailer",'%','%'); fclose(o);
       system("epstopdf doyam10map4b.eps");    
       system(    "open doyam10map4b.pdf");
       getchar(); system("killall Preview");
}

Latex generator of the labels

% Copyleft 2011 by Dmitrii Kouznetsov <br> \documentclass[12pt]{article} %<br> \usepackage{geometry} %<br> \usepackage{graphicx} %<br> \usepackage{rotating} %<br> \paperwidth 866pt %<br> \paperheight 843pt %<br> \topmargin -94pt %<br> \oddsidemargin -96pt %<br> \textwidth 1200pt %<br> \textheight 1800pt %<br> \pagestyle {empty} %<br> \newcommand \sx {\scalebox} %<br> \newcommand \rot {\begin{rotate}} %<br> \newcommand \ero {\end{rotate}} %<br> \newcommand \ing {\includegraphics} %<br> \begin{document} %<br> \sx{10}{ \begin{picture}(41,81) %<br> \put(1,1){\ing{doyam10map4b}} % <br> \put(-.5,79.6){\sx{.4}{$t$}} % <br> \put(-1,71){\sx{.4}{$3$}} % <br> \put(-1,61){\sx{.4}{$2$}} % <br> \put(-1,51){\sx{.4}{$1$}} % <br> \put(-1,41){\sx{.4}{$0$}} % <br> \put(-4,31){\sx{.4}{$-1$}} % <br> \put(-4,21){\sx{.4}{$-2$}} % <br> \put(-4,11){\sx{.4}{$-3$}} % <br> \put(9,-1.5){\sx{.4}{$-3$}} % <br> \put(18,-1.5){\sx{.4}{$-2$}} % <br> \put(28,-1.5){\sx{.4}{$-1$}} % <br> \put(41,-1.5){\sx{.4}{0}} % <br> \put(51,-1.5){\sx{.4}{1}} % <br> \put(61,-1.5){\sx{.4}{2}} % <br> \put(71,-1.5){\sx{.4}{3}} % <br> \put(79.8,-1.2){\sx{.42}{$x$}} % <br> \put(6,72){\rot{6}\sx{.6}{$v\!=\!3$}\ero} % <br> \put(6,62){\rot{4}\sx{.6}{$v\!=\!2$}\ero} % <br> \put(6,51.5){\rot{2}\sx{.6}{$v\!=\!1$}\ero} % <br> \put(6,40.6){\rot{0}\sx{.6}{$v\!=\!0$}\ero} % <br> \put(5,30){\rot{-7}\sx{.6}{$v\!=\!-1$}\ero} % <br> \put(4,19){\rot{-4}\sx{.6}{$v\!=\!-2$}\ero} % <br> \put(3.3,9){\rot{-2}\sx{.6}{$v\!=\!-3$}\ero} % <br> \put(66,40.6){\rot{0}\sx{.6}{$v\!=\!0$}\ero} % <br> \put(42,40.6){\rot{60}\sx{.6}{$u\!=\!0$}\ero} % <br> \put(59,37){\rot{86}\sx{.6}{$u\!=\!1$}\ero} % <br> \end{picture} %<br> } %<br> \end{document}

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current17:50, 20 June 2013Thumbnail for version as of 17:50, 20 June 20131,199 × 1,167 (629 KB)Maintenance script (talk | contribs)Importing image file

The following page uses this file:

Metadata