## # mod_tex: distributed LaTeX-rendering over Apache # Copyright (C) 2007 Peter Danenberg # See doc/COPYING for details. set term pngcairo size 800,600 font ",8" enhanced crop set output 'plot.png' set xrange[-5:2] set yrange[0:1] f(x) = exp(x) k(x) = exp(x) / (sqrt(1 + exp(2*x))**3) dk(x) = (exp(x) * (1 - 2*exp(2*x)))/(sqrt(1+exp(2*x))**5) set label "{/=12 {/Symbol k}_{max}}" at -log(2)/2,f(-log(2)/2) point lt 1 pt 7 offset 1,-1 plot f(x) title "f(x) = e^x", \ k(x) title "{/Symbol=9 k}(x) = e^x/(1+e^{2x})^{3/2}", \ dk(x) title "d{/Symbol=9 k}/dx(x) = e^x(1 - 2e^{2x})/(1+e^{2x})^{5/2}"