Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. documentclass{minimal}
  2. usepackage{tikz}
  3. begin{document}
  4. pgfversionpar
  5. begin{tikzpicture}
  6. draw[blue] plot[domain=-1:1] (x,{x^2 + x^3});
  7. draw[xshift=4cm,blue] plot[domain=-1:1] (x,{(x)^2 + (x)^3});
  8. end{tikzpicture}
  9. end{document}
  10.  
  11. documentclass{minimal}
  12. usepackage{tikz}
  13. makeatletter
  14. deftikz@scan@no@calculator#1(#2){%
  15. patch@tikz(#2)%
  16. expandaftertikz@@scan@@no@calculatorexpandafter#1tikz@temp
  17. }
  18. defpatch@tikz(#1,#2){%
  19. {expandafterletexpandaftersave@tikz@plot@vartikz@plot@var
  20. expandafterdeftikz@plot@var{(save@tikz@plot@var)}%
  21. xdeftikz@temp@i{#1}%
  22. xdeftikz@temp@ii{#2}%
  23. }%
  24. edeftikz@temp{({tikz@temp@i},{tikz@temp@ii})}%
  25. }
  26. makeatother
  27. begin{document}
  28. pgfversionpar
  29. begin{tikzpicture}
  30. draw[blue,variable=t] plot[domain=-1:1] (t,{t^2 + t^3});
  31. draw[xshift=4cm,blue] plot[domain=-1:1] (x,{(x)^2 + (x)^3});
  32. draw[xshift=8cm,scale=0.5,domain=-3.141:3.141,smooth,variable=t]
  33. plot ({t*sin(t r)},{t*cos(t r)});
  34. end{tikzpicture}
  35. end{document}
  36.  
  37. documentclass{minimal}
  38. usepackage{pgf}
  39. begin{document}
  40. pgfversionpar
  41. pgfmathparse{-1^2}pgfmathresult
  42. end{document}
  43.  
  44. draw plot[domain=-1:1] (x,-x^2);
  45.  
  46. draw plot[domain=-1:1] (x,{-(x)^2});
  47.  
  48. draw plot[domain=-1:1] (x,{-x^2});
  49.  
  50. draw plot[domain=-1:1] (x,0-x^2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement