Difference between revisions of "File:Frac2zt.jpg"

From TORI
Jump to navigation Jump to search
Line 43: Line 43:
   
 
==[[Latex]] generator of labels==
 
==[[Latex]] generator of labels==
 
 
<poem><nomathjax><nowiki>
 
 
% File Frac2z.pdf should be generated with the code above in order to compile the [[Latex]] document below.
 
% File Frac2z.pdf should be generated with the code above in order to compile the [[Latex]] document below.
 
<poem><nomathjax><nowiki>
 
 
\documentclass[12pt]{article}
 
\documentclass[12pt]{article}
 
\paperwidth 1006pt
 
\paperwidth 1006pt

Revision as of 21:46, 29 August 2013

Iteration of function $T(z)=-4/z$.

$~ y=T^n(x)$ versus $x$ for various $n$.

C++ Generator of curves

// FIle ado.cin should be loaded to the working directory in order to compile the C++ code below


#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#define DO(x,y) for(x=0;x<y;x++)
#define DB double

#include"ado.cin"

DB A=2.;
DB T(DB n,DB x){return A*tan( (M_PI/2)*n+ atan(x/A));}

main(){ FILE *o; int m,n,k; DB x,y,t;
o=fopen("frac2z.eps","w");
ado(o,1002,1002);
#define M(x,y) fprintf(o,"%7.4f %7.4f M\n",0.+x,0.+y);
#define L(x,y) fprintf(o,"%7.4f %7.4f L\n",0.+x,0.+y);
fprintf(o,"501 501 translate 100 100 scale 2 setlinecap\n");
for(n=-5;n<6;n++) { M(-5,n)L(5,n)}
for(m=-5;m<6;m++) { M(m,-5)L(m,5)}
fprintf(o,".005 W S\n");
M(-5,0)L(5,0)
M(0,-5)L(0,5)
fprintf(o,".02 W S\n");
n=0;DO(m,1001){x=-5.+.01*(m-.5);y=T(2.,x);if(y>-5&&y<5){ if(n==0){M(x,y) n=1;}else L(x,y)} else n=0;} fprintf(o,".03 W 0 1 0 RGB S\n");
n=0;DO(m,1001){x=-5.+.01*(m-.5);y=T(1.,x);if(y>-5&&y<5){ if(n==0){M(x,y) n=1;}else L(x,y)} else n=0;} fprintf(o,".03 W 0 1 0 RGB S\n");
DO(k,20){ t=-2.+.1*k; n=0;DO(m,1001){x=-5.+.01*(m-.5);y=T(t,x);if(y>-7.2&&y<7.2){ if(n==0){M(x,y) n=1;}else L(x,y)} else n=0;} fprintf(o,".01 W 0 0 0 RGB S\n");}
fprintf(o,"showpage\n"); fprintf(o,"%c%cTrailer\n",'%','%');
fclose(o);
system("epstopdf frac2z.eps");
system( "open frac2z.pdf");
}

Latex generator of labels

% File Frac2z.pdf should be generated with the code above in order to compile the Latex document below.


\documentclass[12pt]{article}
\paperwidth 1006pt
\paperheight 1006pt
\textwidth 1100pt
\textheight 1100pt
\topmargin -108pt
\oddsidemargin -72pt
\parindent 0pt
\pagestyle{empty}
\usepackage {graphics}
\usepackage{rotating}
\newcommand \rot {\begin{rotate}}
\newcommand \ero {\end{rotate}}
\newcommand \ing {\includegraphics}
\newcommand \sx {\scalebox}
\begin{document}
\begin{picture}(1004,1004)
\put(479,984){\sx{3}{$y$}}
\put(479,892){\sx{3}{$4$}}
\put(479,792){\sx{3}{$3$}}
\put(479,692){\sx{3}{$2$}}
\put(479,592){\sx{3}{$1$}}
\put(479,492){\sx{3}{$0$}}
\put(459,392){\sx{3}{$-1$}}
\put(459,292){\sx{3}{$-2$}}
\put(459,192){\sx{3}{$-3$}}
\put(459, 92){\sx{3}{$-4$}}

\put( 78,474){\sx{3}{$-4$}}
\put(178,474){\sx{3}{$-3$}}
\put(278,474){\sx{3}{$-2$}}
\put(378,474){\sx{3}{$-1$}}
\put(494,474){\sx{3}{$0$}}
\put(594,474){\sx{3}{$1$}}
\put(694,474){\sx{3}{$2$}}
\put(794,474){\sx{3}{$3$}}
\put(894,474){\sx{3}{$4$}}
\put(986,475){\sx{3}{$x$}}
%\put(0,0){\ing{fracit05}}
%\put(0,0){\ing{fracit10}}
\put(0,0){\ing{frac2z}}

\put( 82,860){\rot{44}\sx{3}{$n\!=\!1.4$}\ero}
\put(140,784){\rot{44}\sx{3}{$n\!=\!1.3$}\ero}
\put(166,720){\rot{36}\sx{3}{$n\!=\!1.2$}\ero}
\put(168,658){\rot{31}\sx{3}{$n\!=\!1.1$}\ero}
\put(172,614){\rot{24}\sx{3}{$n\!=\!1$}\ero}
\put(174,574){\rot{22}\sx{3}{$n\!=\!0.9$}\ero}
\put(180,543){\rot{18}\sx{3}{$n\!=\!0.8$}\ero}

\put(571,866){\rot{77}\sx{3}{$n\!=\!0.5$}\ero}
\put(608,866){\rot{76}\sx{3}{$n\!=\!0.4$}\ero}
\put(650,866){\rot{74}\sx{3}{$n\!=\!0.3$}\ero}
\put(703,866){\rot{68}\sx{3}{$n\!=\!0.2$}\ero}
\put(771,864){\rot{61}\sx{3}{$n\!=\!0.1$}\ero}
\put(840,827){\rot{45}\sx{3}{$n\!=\!0$}\ero}
\put(865,748){\rot{30}\sx{3}{$n\!=\!-0.1$}\ero}
\put(866,681){\rot{21}\sx{3}{$n\!=\!-0.2$}\ero}
\put(866,630){\rot{16}\sx{3}{$n\!=\!-0.3$}\ero}
\put(866,590){\rot{12}\sx{3}{$n\!=\!-0.4$}\ero}
\put(866,554){\rot{10}\sx{3}{$n\!=\!-0.5$}\ero}
\put(866,522){\rot{08}\sx{3}{$n\!=\!-0.6$}\ero}
%\put(866,466){\rot{04}\sx{3}{$n\!=\!-0.8$}\ero}
\put(864,424){\rot{08}\sx{3}{$n\!=\!-0.9$}\ero}
\put(866,386){\rot{10}\sx{3}{$n\!=\!-1$}\ero}
\put(866,339){\rot{14}\sx{3}{$n\!=\!-1.1$}\ero}
\put(870,286){\rot{16}\sx{3}{$n\!=\!-1.2$}\ero}
\put(872,205){\rot{25}\sx{3}{$n\!=\!-1.3$}\ero}
\put(878, 78){\rot{41}\sx{3}{$n\!=\!-1.4$}\ero}

\end{picture}

File history

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

Date/TimeThumbnailDimensionsUserComment
current21:34, 29 August 2013Thumbnail for version as of 21:34, 29 August 20132,089 × 2,089 (716 KB)T (talk | contribs)$T=-4/z$; $~ y=T^n(x)$ versus $x$ for various $n$. Category:Iterate of linear fraction Category:Explicit plot Category:Iteration Category:Abel function Category:Superfunction

There are no pages that use this file.

Metadata