[pstricks] Can't use a mathematical function defined with FPeval in \psplot

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri Apr 11 16:30:06 CEST 2014


Am 10.04.2014 18:13, schrieb Juergen Rose:

> I used the following code:
>
> \documentclass{article}
> \usepackage[nomessages]{fp}%
> \usepackage{pst-plot}
>
> \newcommand{\myMathFunction}[1]
>      {\FPeval\result{trunc(((#1) * 5) - (#1)^2:0)}\result}

that cannot work. trunc(... :0) is a fp specific syntax and won't
be understand by PSTricks (PostScript). You have to define two
functions

Herbert




More information about the PSTricks mailing list