not a bug.
it's the atanh function.
the lowest/highest value you can have as result of the atanh function is:
gnuplot> print atanh(-0.999999999999999)
-17.6163615864504
gnuplot> print atanh(0.999999999999999)
17.6163615864504
with
set yrange [-17.:17.]
and parametric plotting mode for mapping a proper chosen 'trange' to
something suitable
for the atanh function you get a usable result:
# maybe not the best mapping function but it works...
temp(x) = 2./pi*atan(sgn(x)*exp(abs(x)))
set samples 1000
set trange [-34.7:34.7]
set xrange [-5.:5.]
set yrange [-17.:17.]
set parametric
plot temp(t),atanh(temp(t))
Erik Schaff. wrote:
>
> hello,
>
> may be a bug?
> I've just added the .ps output that I got with the expression atanh(x).
> Why does
> the plot stop at once ( around 2 on the y-axe), artanh has to be printed
> until +
> / - infinity as it reaches + - 1 on x-axe.
>
> Thanks for help,
>
> Best regards, Erik
>
>
>
> set terminal postscript landscape enhanced color blacktext solid rounded
>
>
>
> set grid xtics ytics
>
>
> set size 1.07,1.07
>
> set title 'artangensh'
> set output '/media/dats(hdb6)/Studium/SS07
> theo3/transzendenteFUNKTIONEN/artanh.ps'
>
>
> #set multiplot
> set origin 0.0,0.0
>
>
> set angles radians
> set samples 200
>
>
> set xzeroaxis lt -1
> set yzeroaxis lt -1
>
> set xlabel "x"
> set ylabel "X(x)"
> set xrange [-10.00:10.0]
> #set x2range [0.00:1.6]
> set yrange [-14.0:14.00]
> #set y2range [-1.0:1.25]
>
> set key on 8.0,-2.00 samplen 2 spacing 2.5 width -0 height 0 title
> "Legende" box
>
> set xtics 2.00
>
> set ytics 2.00
>
>
>
> plot atanh(x) title "coth / atanh"
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Gnuplot-info mailing list
> Gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
--
View this message in context: http://www.nabble.com/problem-.ps-output-with-atanh%28x%29---with-program-code-tf3918395.html#a11116286
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|