# [pstricks] Dumb question -- asked before?

Hubert Lam hubert at lamfamily.info
Sat May 3 14:34:53 CEST 2014

Minimal example for x^\frac{1}{3} curve:

\begin{psgraph}{->}(0,0)(-2,-2)(2,2){0.8\linewidth}{0.8\linewidth}
\psplot[linewidth=1.15pt,arrows=<->]{-2}{2}{x 1 3 div exp}
\end{psgraph}

Minimal example for parameterised curve:

\def\FuncA{t 1 3 div exp 1 t sub 1 3 div exp}
\begin{psgraph}{->}(0,0)(-2,-2)(2,2){0.8\linewidth}{0.8\linewidth}
\parametricplot[linewidth=1.15pt,arrows=<->]{-8}{-0.1}{\FuncA}
\end{psgraph}

(by the way, it's GhostScript that reports the error!)

From: Hubert Lam
Sent: Saturday, May 3, 2014 10:33 PM
To: pstricks at tug.org
Subject: Dumb question -- asked before?

Hi all

I'm sure I've asked this before but I can't seem to find it again in the archives.

I remember some years ago I asked about \psplot doing some cube root function, and it would fail at $x = 0$.

What was the workaround for this?

Reason:  I'm trying to sketch $x^3 + y^3 = 1$ but without \psplotimp which gives of course, a much poorer image than if I were to parameterise it to

$x = t^{\frac{1}{3}}$ and $y = (1- t)^{\frac{1}{3}}$.

Many thanks

Hubert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20140503/645ae1c7/attachment.html>