Problem with graphs

Herbert Voss Herbert.Voss at fu-berlin.de
Mon Jul 13 07:59:47 CEST 2020



Am 12.07.20 um 21:52 schrieb Djones9976 via texhax:
> I am trying to plot the following two graphs in pstricks using 
> algebraic rather than reverse polish, but without success.  Can 
> someone tell me what I am doing wrong?
>
> Many thanks,
>
> D. W. Jones
> \psset{xunit=0.3,yunit=3}
> \begin{pspicture}(0,-1)(10,1.3)
> \psset{algebraic=true,plotpoints=501}
> \psaxes[Dx=1,Dy=1]{->}(0,0)(0,-1)(10,1.3)
> \psplot[linewidth=1pt]{0.1}{0.95}{\frac{4*(1-x)}{4*(1-x)+(1/x)*(SINH(sqrt(16*(1-x)))^2) 
> )}}

You are mixing TeX and algebraic notation!  \frac{a}{b} is TeX, but a/b 
is algebraic:

\psplot[linewidth=1pt]{0.1}{0.95}{
   4*(1-x)/(4*(1-x)+(1/x)*(SINH(sqrt(16*(1-x)))^2))
}


Herbert



> \end{pspicture}
>
>
>
> \psset{xunit=0.3,yunit=3}
> \begin{pspicture}(0,-1)(10,1.3)
> \psset{algebraic=true,plotpoints=501}
> \psaxes[Dx=1,Dy=1]{->}(0,0)(0,-1)(10,1.3)
> \psplot[linewidth=1pt]{1.1}{10.95}{\frac{4*(x-1)}{4*(x-1)+(1/x)*(sin(sqrt(16*(x-1)))^2) 
> )}}
> \end{pspicture}
>
>
>



More information about the texhax mailing list.