Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132928 views
License: OTHER
1
\documentclass[varwidth=true, border=2pt]{standalone}
2
3
\usepackage{pgfplots}
4
\usepackage{tikz}
5
6
\begin{document}
7
\begin{tikzpicture}
8
\begin{axis}[
9
legend pos=south east,
10
axis x line=middle,
11
axis y line=middle,
12
grid = major,
13
%width=9cm,
14
%height=4.5cm,
15
grid style={dashed, gray!30},
16
xmin= 0, % start the diagram at this x-coordinate
17
xmax= 12, % end the diagram at this x-coordinate
18
ymin=-10, % start the diagram at this y-coordinate
19
ymax= 10, % end the diagram at this y-coordinate
20
%axis background/.style={fill=white},
21
xlabel=$x$,
22
ylabel=$y$,
23
%xticklabels={-2,-1.6,...,7},
24
tick align=outside,
25
%minor tick num=-3,
26
enlargelimits=true]
27
\addplot[domain=0:12, red, thick,samples=500] {1/3*x^1.5};
28
\addplot[domain=0:12, orange, thick,samples=500] {1*x^1.5};
29
\addplot[domain=0:12, blue, thick,samples=500] {2*x^1.5};
30
31
\addplot[domain=0:12, red, thick,samples=500] {-1/3*x^1.5};
32
\addplot[domain=0:12, orange, thick,samples=500] {-1*x^1.5};
33
\addplot[domain=0:12, blue, thick,samples=500] {-2*x^1.5};
34
\addlegendentry{$a=\frac{1}{3}$}
35
\addlegendentry{$a=1$}
36
\addlegendentry{$a=2$}
37
\end{axis}
38
\end{tikzpicture}
39
\end{document}
40
41