TeX - LaTeX Asked by Bibianne Castañeda on November 6, 2021
i’m trying to graph this function
documentclass{article}
usepackage{tikz}
usepackage{mathtools}
usepackage{pgfplots}
pgfplotsset{compat=1.15}
begin{document}
begin{figure}
centering
begin{tikzpicture}
begin{axis}[
domain= 0:2,
title= Grafica en LaTex,
xlabel=$eje x$
ylabel=$Eje y$
ymin=1, ymax=14,
xmin=1, xmax=1.92,
]
addplot{(x^{frac{5}{2}}) + (3x^{frac{13}{10}}) +2};
end{axis}
end{tikzpicture}
end{figure}
end{document}
I keep getting "Undefined control sequence.", "! File ended while scanning use of pgfmath@dimen@@."
pgfplots
doesn't use TeX notation for addplots
.
Instead use: addplot{x^(5/2) + 3*x^(13/10) + 2};
(Aside: You're missing a commas before and after the ylabel
too.)
Answered by David Purton on November 6, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP