File:ShokotaniaT.png

Explicit plots of the Shoko function (thick curve) and the Tania function (thin curve).

C++ generator of curves
// files doya.cin and ado.cin should be loaded in the working directory in order to compile the C++ code below.

using namespace std; typedef complex z_type;
 * 1) include
 * 2) include
 * 3) include
 * 4) define DB double
 * 5) define DO(x,y) for(x=0;x<y;x++)
 * 1) include
 * 1) define Re(x) x.real
 * 2) define Im(x) x.imag
 * 3) define I z_type(0.,1.)
 * 4) include "ado.cin"
 * 5) include "doya.cin"

DB Shoko(DB x) { return log(1.+exp(x)*(M_E-1.)); }

main{ int m,n; double x,y; FILE *o; o=fopen("ShokoTania.eps","w"); ado(o,802,460); fprintf(o,"401 1 translate 100 100 scale\n"); for(m=-4;m<5;m++) {M(m,0)L(m,4)} for(m=0;m<5;m++) {M(-4,m)L(4,m)} fprintf(o,"2 setlinecap .01 W S\n"); for(m=0;m<81;m++) {x=-4.+.1*m; y=Shoko(x); if(m==0) M(x,y) else L(x,y);} fprintf(o,"1 setlinecap 1 setlinejoin .04 W 0 0.6 0 RGB S\n"); for(m=0;m<81;m++) {x=-4.+.1*m; y=Re(Tania(x)); if(m==0) M(x,y) else L(x,y);} fprintf(o,"1 setlinecap 1 setlinejoin .014 W 0.4 0 .4 RGB S\n"); fprintf(o,"showpage\n%c%cTrailer",'%','%'); fclose(o); system("epstopdf ShokoTania.eps"); system(   "open ShokoTania.pdf"); getchar; system("killall Preview");//for mac }
 * 1) define M(x,y) fprintf(o,"%6.3f %6.3f M\n",0.+x,0.+y);
 * 2) define L(x,y) fprintf(o,"%6.3f %6.3f L\n",0.+x,0.+y);

Latex generator of labels
% file ShokoTania.pdf should be generated with the code above in order to compile the Latex document below. %

\documentclass[12pt]{article} % \usepackage{geometry} % \usepackage{graphics} % \usepackage{rotating} % \paperwidth 804pt % \paperheight 460pt % \topmargin -111pt % \oddsidemargin -73pt % \parindent 0pt % \pagestyle{empty} % \newcommand \sx {\scalebox} % \newcommand \rot {\begin{rotate}} % \newcommand \ero {\end{rotate}} % \begin{document} % \begin{picture}(802,462) % \put(0,0){\includegraphics{ShokoTania}} % \put(380,440){\sx{3.2}{$y$}} % \put(380,392){\sx{3.2}{$4$}} % \put(380,292){\sx{3.2}{$3$}} % \put(380,192){\sx{3.2}{$2$}} % \put(380, 92){\sx{3.2}{$1$}} % \put( 75, 4){\sx{3.2}{$-\!3$}} % \put(175, 4){\sx{3.2}{$-\!2$}} % \put(275, 4){\sx{3.2}{$-\!1$}} % \put(394, 4){\sx{3.2}{$0$}} % \put(494, 4){\sx{3.2}{$1$}} % \put(594, 4){\sx{3.2}{$2$}} % \put(694, 4){\sx{3.2}{$3$}} % \put(784, 4){\sx{3.2}{$x$}} % \put(442,140){\sx{3.2}{\rot{41} $y\!=\!\mathrm{Shoko}(x)$\ero}} % \put(468,102){\sx{3.2}{\rot{32} $y\!=\!\mathrm{Tania}(x)$\ero}} % \end{picture} % \end{document} % %

% Copyleft 2012 by Dmitrii Kouznetsov