Difference between revisions of "File:Tet2LiMap18a.png"

From TORI
Jump to: navigation, search
 
Line 1: Line 1:
  +
This is png version of File:Tet2LiMap18c.jpg
  +
  +
  +
[[Complex map]] of approximation [[Tet2Li]] of [[tetration to base 2]]
  +
  +
==[[C++]] generator of curves==
  +
// Files
  +
[[ado.cin]],
  +
[[conto.cin]]
  +
[[Tet2Li3.cin]]
  +
should be loaded
  +
<pre>
  +
#include <math.h>
  +
#include <stdio.h>
  +
#include <stdlib.h>
  +
#define DB double
  +
#define DO(x,y) for(x=0;x<y;x++)
  +
#include <complex>
  +
#define z_type std::complex<double>
  +
#define Re(x) x.real()
  +
#define Im(x) x.imag()
  +
#define I z_type(0.,1.)
  +
//#include "tet2f4c.cin"
  +
#include "conto.cin"
  +
#include"Tet2Li3.inc"
  +
  +
int main(){ int j,k,m,m1,n; DB x,y, p,q, t; z_type z,c,d, cu,cd;
  +
//z_type Zo=z_type(.31813150520476413, 1.3372357014306895);
  +
  +
int M=403,M1=M+1;
  +
int N=401,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("Tet2LiM.eps","w");ado(o,820,820);
  +
// FILE *o;o=fopen("Tet2LiM.eps","w");ado(o,408,208);
  +
fprintf(o,"410 110 translate\n 100 100 scale 2 setlinecap\n");
  +
DO(m,M1)X[m]=-4.01+.02*(m);
  +
DO(n,N1)Y[n]=-1.01+.02*(n);
  +
  +
for(m=-4;m<5;m++){ M(m,-1)L(m,7)}
  +
for(n=-1;n<8;n++){ M( -4,n)L(4,n)}
  +
fprintf(o,".007 W 0 0 0 RGB S\n");
  +
  +
// for(m=-2;m<3;m++){ M(m+.5,-1)L(m+.5,1)}
  +
// for(n=-1;n<1;n++){ M( -2,n+.5)L(2,n+.5)}
  +
// fprintf(o,".0034 W 0 0 0 RGB S\n");
  +
  +
  +
DO(m,M1)DO(n,N1){g[m*N1+n]=9999; f[m*N1+n]=9999;}
  +
  +
DO(n,N1){y=Y[n];
  +
for(m=0;m<M1;m++)
  +
{x=X[m]; //printf("%5.2f\n",x);
  +
z=z_type(x,y);
  +
// c=F4(z);
  +
c=Tet2Li3(z);
  +
// d=conj(Tet2Li3(conj(z)));
  +
// c=-log((c-d)/(c+d))/log(10.);
  +
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=20;q=1;
  +
  +
conto(o,f,w,v,X,Y,M,N,1.5674321238496474,-.03, .03); fprintf(o,".1 W 1 .6 .7 RGB S\n");
  +
conto(o,g,w,v,X,Y,M,N,0.8246785461420740,-.03, .03); fprintf(o,".1 W .7 .7 1 RGB S\n");
  +
  +
for(m=-10;m<10;m++)for(n=1;n<10;n+=1)conto(o,f,w,v,X,Y,M,N,(m+.1*n),-q, q); fprintf(o,".008 W 0 .6 0 RGB S\n");
  +
for(m=0;m<10;m++) for(n=1;n<10;n+=1)conto(o,g,w,v,X,Y,M,N,-(m+.1*n),-q, q); fprintf(o,".008 W .9 0 0 RGB S\n");
  +
for(m=0;m<10;m++) for(n=1;n<10;n+=1)conto(o,g,w,v,X,Y,M,N, (m+.1*n),-q, q); fprintf(o,".008 W 0 0 .9 RGB S\n");
  +
for(m=1;m<10;m++) conto(o,f,w,v,X,Y,M,N, (0.-m),-p,p); fprintf(o,".02 W .9 0 0 RGB S\n");
  +
for(m=1;m<10;m++) conto(o,f,w,v,X,Y,M,N, (0.+m),-p,p); fprintf(o,".02 W 0 0 .9 RGB S\n");
  +
conto(o,f,w,v,X,Y,M,N, (0. ),-p,p); fprintf(o,".02 W .6 0 .6 RGB S\n");
  +
for(m=-9;m<10;m++) conto(o,g,w,v,X,Y,M,N, (0.+m),-p,p); fprintf(o,".02 W 0 0 0 RGB S\n");
  +
  +
/*
  +
conto(o,g,w,v,X,Y,M,N,15,-p,p); fprintf(o,".004 W 1 0 1 RGB S\n");
  +
conto(o,g,w,v,X,Y,M,N,14,-p,p); fprintf(o,".01 W 0 0 1 RGB S\n");
  +
conto(o,g,w,v,X,Y,M,N,13,-p,p); fprintf(o,".0041 W 0 0 0 RGB S\n");
  +
conto(o,g,w,v,X,Y,M,N,12,-p,p); fprintf(o,".01 W 0 1 0 RGB S\n");
  +
conto(o,g,w,v,X,Y,M,N,11,-p,p); fprintf(o,".004 W 0 0 0 RGB S\n");
  +
conto(o,g,w,v,X,Y,M,N,10,-p,p); fprintf(o,".01 W 1 0 0 RGB S\n");
  +
conto(o,g,w,v,X,Y,M,N, 9,-p,p); fprintf(o,".004 W 0 0 0 RGB S\n");
  +
conto(o,g,w,v,X,Y,M,N, 8,-p,p); fprintf(o,".01 W .2 0 0 RGB S\n");
  +
conto(o,g,w,v,X,Y,M,N, 7,-p,p); fprintf(o,".004 W 0 0 0 RGB S\n");
  +
conto(o,g,w,v,X,Y,M,N, 6,-p,p); fprintf(o,".01 W .2 0 0 RGB S\n");
  +
conto(o,g,w,v,X,Y,M,N, 5,-p,p); fprintf(o,".004 W 0 0 0 RGB S\n");
  +
conto(o,g,w,v,X,Y,M,N, 4,-p,p); fprintf(o,".01 W .2 0 0 RGB S\n");
  +
conto(o,g,w,v,X,Y,M,N, 3,-p,p); fprintf(o,".004 W 0 0 0 RGB S\n");
  +
conto(o,g,w,v,X,Y,M,N, 2,-p,p); fprintf(o,".01 W .8 0 0 RGB S\n");
  +
conto(o,g,w,v,X,Y,M,N, 1,-p,p); fprintf(o,".03 W .4 0 0 RGB S\n");
  +
*/
  +
fprintf(o,"showpage\n%c%cTrailer",'%','%'); fclose(o);
  +
system("epstopdf Tet2LiM.eps");
  +
system( "open Tet2LiM.pdf");
  +
}
  +
  +
</pre>
  +
  +
==[[Latex]] generator of labels==
  +
<pre>
  +
\documentclass[12pt]{article}
  +
\usepackage{graphicx}
  +
\usepackage{rotating}
  +
\usepackage{geometry}
  +
\paperwidth 830pt
  +
\paperheight 840pt
  +
\textheight 1200pt
  +
\topmargin -108pt
  +
\oddsidemargin -81pt
  +
\pagestyle{empty}
  +
\parindent 0pt
  +
\begin{document}
  +
\newcommand \ing {\includegraphics}
  +
\newcommand \sx {\scalebox}
  +
\newcommand \rot {\begin{rotate}}
  +
\newcommand \ero {\end{rotate}}
  +
\begin{picture}(840,828)
  +
\put(20,10){\includegraphics{Tet2LiM}}
  +
\put(9,812){\sx{3}{$y$}}
  +
\put(9,711){\sx{3}{$6$}}
  +
\put(9,611){\sx{3}{$5$}}
  +
\put(9,511){\sx{3}{$4$}}
  +
\put(9,411){\sx{3}{$3$}}
  +
\put(9,311){\sx{3}{$2$}}
  +
\put(9,211){\sx{3}{$1$}}
  +
\put(9,111){\sx{3}{$0$}}
  +
\put(0,-8){\sx{3}{$-4$}}
  +
\put(100,-8){\sx{3}{$-3$}}
  +
\put(200,-8){\sx{3}{$-2$}}
  +
\put(300,-8){\sx{3}{$-1$}}
  +
\put(423,-8){\sx{3}{$0$}}
  +
\put(523,-8){\sx{3}{$1$}}
  +
\put(623,-8){\sx{3}{$2$}}
  +
\put(723,-8){\sx{3}{$3$}}
  +
\put(815,-7){\sx{3.2}{$x$}}
  +
\put(334,614){\rot{-80}\sx{3}{$u\!=\!\Re(L)$}\ero}
  +
\put(478,620){\rot{-80}\sx{3}{$v\!=\!\Im(L)$}\ero}
  +
\put(767,620){\rot{-81}\sx{3}{$v\!=\!\Im(L)$}\ero}
  +
\put(560,490){\rot{54}\sx{3}{$v\!=\!1.6$}\ero}
  +
\put(236,524){\rot{-36}\sx{3}{$u\!=\!0.8$}\ero}
  +
\put(438,400){\rot{47}\sx{3}{$u\!=\!0.9$}\ero}
  +
\put(470,350){\rot{38}\sx{3}{$u\!=\!1$}\ero}
  +
\put(280,328){\rot{67}\sx{3}{$v\!=\!1.5$}\ero}
  +
\put(296,280){\rot{54}\sx{3}{$v\!=\!1.4$}\ero}
  +
\put(310,234){\rot{36}\sx{3}{$v\!=\!1.2$}\ero}
  +
\put(322,208){\rot{29}\sx{3}{$v\!=\!1$}\ero}
  +
\put(336,111){\rot{0}\sx{3}{$v\!=\!0$}\ero}
  +
\put(339,82){\rot{90}\sx{3}{$u\!=\!0$}\ero}
  +
\put(441,82){\rot{90}\sx{3}{$u\!=\!1$}\ero}
  +
\put(543,82){\rot{90}\sx{3}{$u\!=\!2$}\ero}
  +
\put(606,82){\rot{90}\sx{3}{$u\!=\!3$}\ero}
  +
\put(643,82){\rot{90}\sx{3}{$u\!=\!4$}\ero}
  +
\put(530,13){\rot{33}\sx{3}{$v\!=\!-1$}\ero}
  +
\end{picture}
  +
\end{document}
  +
</pre>
  +
  +
==References==
  +
<references/>
  +
  +
[[Category:Approximation]]
  +
[[Category:Ackermann]]
  +
[[Category:Book]]
  +
[[Category:BookMap]]
  +
[[Category:C++]]
  +
[[Category:Complex map]]
  +
[[Category:Latex]]
  +
[[Category:Superfunction]]
  +
[[Category:Superfunctions]]
  +
[[Category:Taylor expansion]]
  +
[[Category:Tet2]]
  +
[[Category:Tet2Li]]
  +
[[Category:Tetration]]
  +
[[Category:Tetration to base 2]]

Revision as of 14:56, 28 July 2020

This is png version of File:Tet2LiMap18c.jpg


Complex map of approximation Tet2Li of tetration to base 2

C++ generator of curves

// Files ado.cin, conto.cin Tet2Li3.cin should be loaded

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#define DB double
#define DO(x,y) for(x=0;x<y;x++)
#include <complex>
#define z_type std::complex<double>
#define Re(x) x.real()
#define Im(x) x.imag()
#define I z_type(0.,1.)
//#include "tet2f4c.cin"
#include "conto.cin"
#include"Tet2Li3.inc"

int main(){ int j,k,m,m1,n; DB x,y, p,q, t; z_type z,c,d, cu,cd;
//z_type Zo=z_type(.31813150520476413, 1.3372357014306895);

 int M=403,M1=M+1;
 int N=401,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("Tet2LiM.eps","w");ado(o,820,820);
// FILE *o;o=fopen("Tet2LiM.eps","w");ado(o,408,208);
 fprintf(o,"410 110 translate\n 100 100 scale 2 setlinecap\n");
 DO(m,M1)X[m]=-4.01+.02*(m);
 DO(n,N1)Y[n]=-1.01+.02*(n);

 for(m=-4;m<5;m++){ M(m,-1)L(m,7)}
 for(n=-1;n<8;n++){ M( -4,n)L(4,n)}
 fprintf(o,".007 W 0 0 0 RGB S\n");

// for(m=-2;m<3;m++){ M(m+.5,-1)L(m+.5,1)}
// for(n=-1;n<1;n++){ M( -2,n+.5)L(2,n+.5)}
// fprintf(o,".0034 W 0 0 0 RGB S\n");
 

DO(m,M1)DO(n,N1){g[m*N1+n]=9999; f[m*N1+n]=9999;}

 DO(n,N1){y=Y[n];
          for(m=0;m<M1;m++)
          {x=X[m]; //printf("%5.2f\n",x);
           z=z_type(x,y);
//           c=F4(z);
           c=Tet2Li3(z);
 //          d=conj(Tet2Li3(conj(z)));
//      c=-log((c-d)/(c+d))/log(10.);
           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=20;q=1;

conto(o,f,w,v,X,Y,M,N,1.5674321238496474,-.03, .03); fprintf(o,".1 W 1 .6 .7 RGB S\n");
conto(o,g,w,v,X,Y,M,N,0.8246785461420740,-.03, .03); fprintf(o,".1 W .7 .7 1 RGB S\n");

 for(m=-10;m<10;m++)for(n=1;n<10;n+=1)conto(o,f,w,v,X,Y,M,N,(m+.1*n),-q, q); fprintf(o,".008 W 0 .6 0 RGB S\n");
 for(m=0;m<10;m++) for(n=1;n<10;n+=1)conto(o,g,w,v,X,Y,M,N,-(m+.1*n),-q, q); fprintf(o,".008 W .9 0 0 RGB S\n");
 for(m=0;m<10;m++) for(n=1;n<10;n+=1)conto(o,g,w,v,X,Y,M,N, (m+.1*n),-q, q); fprintf(o,".008 W 0 0 .9 RGB S\n");
 for(m=1;m<10;m++) conto(o,f,w,v,X,Y,M,N, (0.-m),-p,p); fprintf(o,".02 W .9 0 0 RGB S\n");
 for(m=1;m<10;m++) conto(o,f,w,v,X,Y,M,N, (0.+m),-p,p); fprintf(o,".02 W 0 0 .9 RGB S\n");
                    conto(o,f,w,v,X,Y,M,N, (0. ),-p,p); fprintf(o,".02 W .6 0 .6 RGB S\n");
 for(m=-9;m<10;m++) conto(o,g,w,v,X,Y,M,N, (0.+m),-p,p); fprintf(o,".02 W 0 0 0 RGB S\n");

/*
conto(o,g,w,v,X,Y,M,N,15,-p,p); fprintf(o,".004 W 1 0 1 RGB S\n");
conto(o,g,w,v,X,Y,M,N,14,-p,p); fprintf(o,".01 W 0 0 1 RGB S\n");
conto(o,g,w,v,X,Y,M,N,13,-p,p); fprintf(o,".0041 W 0 0 0 RGB S\n");
conto(o,g,w,v,X,Y,M,N,12,-p,p); fprintf(o,".01 W 0 1 0 RGB S\n");
conto(o,g,w,v,X,Y,M,N,11,-p,p); fprintf(o,".004 W 0 0 0 RGB S\n");
conto(o,g,w,v,X,Y,M,N,10,-p,p); fprintf(o,".01 W 1 0 0 RGB S\n");
conto(o,g,w,v,X,Y,M,N, 9,-p,p); fprintf(o,".004 W 0 0 0 RGB S\n");
conto(o,g,w,v,X,Y,M,N, 8,-p,p); fprintf(o,".01 W .2 0 0 RGB S\n");
conto(o,g,w,v,X,Y,M,N, 7,-p,p); fprintf(o,".004 W 0 0 0 RGB S\n");
conto(o,g,w,v,X,Y,M,N, 6,-p,p); fprintf(o,".01 W .2 0 0 RGB S\n");
conto(o,g,w,v,X,Y,M,N, 5,-p,p); fprintf(o,".004 W 0 0 0 RGB S\n");
conto(o,g,w,v,X,Y,M,N, 4,-p,p); fprintf(o,".01 W .2 0 0 RGB S\n");
conto(o,g,w,v,X,Y,M,N, 3,-p,p); fprintf(o,".004 W 0 0 0 RGB S\n");
conto(o,g,w,v,X,Y,M,N, 2,-p,p); fprintf(o,".01 W .8 0 0 RGB S\n");
conto(o,g,w,v,X,Y,M,N, 1,-p,p); fprintf(o,".03 W .4 0 0 RGB S\n");
*/
fprintf(o,"showpage\n%c%cTrailer",'%','%'); fclose(o);
        system("epstopdf Tet2LiM.eps");
        system(   "open  Tet2LiM.pdf");
}

Latex generator of labels

\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{rotating}
\usepackage{geometry}
\paperwidth 830pt
\paperheight 840pt
\textheight 1200pt
\topmargin -108pt
\oddsidemargin -81pt
\pagestyle{empty}
\parindent 0pt
\begin{document}
\newcommand \ing {\includegraphics}
\newcommand \sx {\scalebox}
\newcommand \rot {\begin{rotate}}
\newcommand \ero {\end{rotate}}
\begin{picture}(840,828)
\put(20,10){\includegraphics{Tet2LiM}}
\put(9,812){\sx{3}{$y$}}
\put(9,711){\sx{3}{$6$}}
\put(9,611){\sx{3}{$5$}}
\put(9,511){\sx{3}{$4$}}
\put(9,411){\sx{3}{$3$}}
\put(9,311){\sx{3}{$2$}}
\put(9,211){\sx{3}{$1$}}
\put(9,111){\sx{3}{$0$}}
\put(0,-8){\sx{3}{$-4$}}
\put(100,-8){\sx{3}{$-3$}}
\put(200,-8){\sx{3}{$-2$}}
\put(300,-8){\sx{3}{$-1$}}
\put(423,-8){\sx{3}{$0$}}
\put(523,-8){\sx{3}{$1$}}
\put(623,-8){\sx{3}{$2$}}
\put(723,-8){\sx{3}{$3$}}
\put(815,-7){\sx{3.2}{$x$}}
\put(334,614){\rot{-80}\sx{3}{$u\!=\!\Re(L)$}\ero}
\put(478,620){\rot{-80}\sx{3}{$v\!=\!\Im(L)$}\ero}
\put(767,620){\rot{-81}\sx{3}{$v\!=\!\Im(L)$}\ero}
\put(560,490){\rot{54}\sx{3}{$v\!=\!1.6$}\ero}
\put(236,524){\rot{-36}\sx{3}{$u\!=\!0.8$}\ero}
\put(438,400){\rot{47}\sx{3}{$u\!=\!0.9$}\ero}
\put(470,350){\rot{38}\sx{3}{$u\!=\!1$}\ero}
\put(280,328){\rot{67}\sx{3}{$v\!=\!1.5$}\ero}
\put(296,280){\rot{54}\sx{3}{$v\!=\!1.4$}\ero}
\put(310,234){\rot{36}\sx{3}{$v\!=\!1.2$}\ero}
\put(322,208){\rot{29}\sx{3}{$v\!=\!1$}\ero}
\put(336,111){\rot{0}\sx{3}{$v\!=\!0$}\ero}
\put(339,82){\rot{90}\sx{3}{$u\!=\!0$}\ero}
\put(441,82){\rot{90}\sx{3}{$u\!=\!1$}\ero}
\put(543,82){\rot{90}\sx{3}{$u\!=\!2$}\ero}
\put(606,82){\rot{90}\sx{3}{$u\!=\!3$}\ero}
\put(643,82){\rot{90}\sx{3}{$u\!=\!4$}\ero}
\put(530,13){\rot{33}\sx{3}{$v\!=\!-1$}\ero}
\end{picture}
\end{document}

References

File history

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

Date/TimeThumbnailDimensionsUserComment
current14:54, 28 July 2020Thumbnail for version as of 14:54, 28 July 20201,148 × 1,162 (975 KB)T (talk | contribs)
  • You cannot overwrite this file.

There are no pages that link to this file.

Metadata