Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin{document}
- begin{tikzpicture}
- begin{axis}[
- axis lines = center,
- xlabel = $x$,
- ylabel = {$y$},
- xmax = {4},
- xmin = {-1},
- ymax = {2},
- ymin = {-2},
- legend pos = outer north east
- ]
- addplot [
- domain=-10:10,
- samples=100,
- color=black,
- ]
- {x^(1/2)};
- addlegendentry{$y=sqrt{x}$}
- addplot [
- domain=-5:5,
- samples=100,
- color=blue,
- ]
- {x^(1/4)};
- addlegendentry{$y=x^{frac{1}{4}}$}
- end{axis}
- end{tikzpicture}
- begin{tikzpicture}
- begin{axis}[
- axis lines = center,
- xlabel = $x$,
- ylabel = {$y$},
- xmax = {4},
- xmin = {-4},
- ymax = {2},
- ymin = {-2},
- legend pos = north west
- ]
- addplot [
- domain=-10:10,
- samples=100,
- color=black,
- ]
- {x^(1/3)};
- addlegendentry{$y=x^{frac{1}{3}}$}
- addplot [
- domain=-10:10,
- samples=100,
- color=blue,
- ]
- {x^(1/5)};
- addlegendentry{$y=x^{frac{1}{5}}$}
- end{axis}
- end{tikzpicture}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement