> \documentclass[10pt]{article}
> \usepackage{tikz}
> \pagestyle{empty}
> 
> \begin{document}
> \begin{tikzpicture}
> \draw[->,color=black] (0,-5) -- (0,5);
> \draw[->,color=black] (-8,0) -- (8,0);
> 
> %\draw[color=blue,samples=200,domain=0.001:8] plot
> (\x,{exp(1.0/3*ln(\x)}); \draw[color=green,smooth,samples=100]
> plot[domain=0.01:8.0] (\x,{\x^(1./3)}); %
> \draw[color=red,samples=400,domain=0.0001:8] plot function {x**(1./3)};
> \end{tikzpicture} 
> \end{document}
> 
> \x^(1/3) gives a bad result
> 
> correct is the syntax with exp and ln or with gnuplot
> 
> correct also but very slow
> 
> \documentclass[10pt]{article}
> \usepackage{fp,tikz}
> \usetikzlibrary{fixedpointarithmetic}
> \pagestyle{empty}
> 
> \begin{document}
> \begin{tikzpicture}
> \draw[->,color=black] (0,-5) -- (0,5);
> \draw[->,color=black] (-8,0) -- (8,0);
> 
> %\draw[color=blue,samples=200,domain=0.001:8] plot
> (\x,{exp(1.0/3*ln(\x)}); 
> \pgfkeys{/pgf/fixed point arithmetic}
> \draw[color=green,smooth,samples=100] plot[domain=0.01:8.0]
> (\x,{\x^(1./3)}); 
> % \draw[color=red,samples=400,domain=0.0001:8] plot
> function {x**(1./3)}; 
> \end{tikzpicture} 
> \end{document}

also interesting is, that pgfplots brings the correct graph. Is the fp/fpu
library used by default there?

\documentclass{article}
    \usepackage{tikz}
    \usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
    \begin{axis}
        \addplot [domain=0.01:4,samples=100] {x^(1.0/3)};
    \end{axis}
\end{tikzpicture}

\end{document}



Best regards,
Stefan

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Pgfplots-features mailing list
Pgfplots-features@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgfplots-features

Reply via email to