Guest User

Untitled

a guest
Jun 17th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. documentclass[10pt]{article}
  2. usepackage{pgf,tikz,pgfplots}
  3. pgfplotsset{compat=1.16}
  4. % usepackage{mathrsfs}
  5. usetikzlibrary{arrows}
  6. pagestyle{empty}
  7. begin{document}
  8. definecolor{ffqqqq}{rgb}{1.,0.,0.}
  9. definecolor{qqqqff}{rgb}{0.,0.,1.}
  10. definecolor{qqwuqq}{rgb}{0.,0.39215686274509803,0.}
  11. begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]
  12. begin{axis}[
  13. x=1.0cm,y=1.0cm,
  14. axis lines=middle,
  15. ymajorgrids=true,
  16. xmajorgrids=true,
  17. xmin=-2.118707736780596,
  18. xmax=5.255760268305019,
  19. ymin=-4.168187134916317,
  20. ymax=0.14792878906557064,
  21. xtick={-2.0,-1.0,...,5.0},
  22. ytick={-4.0,-3.0,...,0.0},]
  23. clip(-2.118707736780596,-4.168187134916317) rectangle (5.255760268305019,0.14792878906557064);
  24. % draw[line width=4.pt] (7.811006812257485,-1.2289916284010438) -- (10.458930692000973,-1.2289916284010438);
  25. % draw[line width=4.pt] (7.78452757346005,-2.261681941501005) -- (10.432451453203537,-2.261681941501005);
  26. % draw[line width=4.pt] (7.7977671928587675,-1.7453367849510244) -- (10.445691072602255,-1.7453367849510244);
  27. addplot[line width=2.pt,color=qqwuqq,smooth,samples=100,domain=-2.118707736780596:1]
  28. {0-2.0/3.0*3.141592653589793*0.05*10.2*(3.0*1.0^(2.0)-(x)^(2.0))};
  29. addplot[line width=2.pt,color=qqqqff,smooth,samples=100,domain=1:5.255760268305019]
  30. {0-4.0/3.0*3.141592653589793*0.05*10.2*1.0/(x)*1.0^(3.0)};
  31. draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (1.,-4.168187134916317) -- (1.,0.14792878906557064);
  32. addplot[line width=2.pt,color=ffqqqq,domain=-2.118707736780596:5.255760268305019]
  33. {(-4.272566012175239--2.1362830077341797*x)/1.};
  34. begin{scriptsize}
  35. draw[color=black] (9.187927229724098,-0.9178605725311839) node {$a = 1$};
  36. draw[color=black] (8.062559580833117,-1.9505508856311446) node {$G = 0.05$};
  37. draw[color=black] (8.76425940896514,-1.4342057290811645) node {$rho = 10.2$};
  38. draw[color=qqwuqq] (-1.8539153488062472,-0.7589851397465746) node {$f$};
  39. draw[color=qqqqff] (0.5027369041654571,-6.518219578188664) node {$g$};
  40. draw[color=black] (1.2044367322974814,-1.9902697438272972) node {$A$};
  41. draw[color=ffqqqq] (1.9061365604295057,-0.6001097069619652) node {$i$};
  42. end{scriptsize}
  43. end{axis}
  44. end{tikzpicture}
  45.  
  46.  
  47. begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]
  48. begin{axis}[
  49. x=1.0cm,y=1.0cm,
  50. axis lines=middle,
  51. ymajorgrids=true,
  52. xmajorgrids=true,
  53. xmin=-2.118707736780596,
  54. xmax=5.255760268305019,
  55. ymin=-4.168187134916317,
  56. ymax=0.14792878906557064,
  57. xtick={-2.0,-1.0,...,5.0},
  58. ytick={-4.0,-3.0,...,0.0},]
  59. clip(-2.118707736780596,-4.168187134916317) rectangle (5.255760268305019,0.14792878906557064);
  60. % draw[line width=4.pt] (7.811006812257485,-1.2289916284010438) -- (10.458930692000973,-1.2289916284010438);
  61. % draw[line width=4.pt] (7.78452757346005,-2.261681941501005) -- (10.432451453203537,-2.261681941501005);
  62. % draw[line width=4.pt] (7.7977671928587675,-1.7453367849510244) -- (10.445691072602255,-1.7453367849510244);
  63. addplot[line width=2.pt,color=qqqqff,smooth,samples=100,domain=1:5.255760268305019]
  64. {0-4.0/3.0*3.141592653589793*0.05*10.2*1.0/(x)*1.0^(3.0)};
  65. draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (1.,-4.168187134916317) -- (1.,0.14792878906557064);
  66. addplot[line width=2.pt,color=qqwuqq,domain=-2.118707736780596:1]
  67. {(-4.272566012175239-2.1362830077341797*(x-2))/1.};
  68. begin{scriptsize}
  69. draw[color=black] (9.187927229724098,-0.9178605725311839) node {$a = 1$};
  70. draw[color=black] (8.062559580833117,-1.9505508856311446) node {$G = 0.05$};
  71. draw[color=black] (8.76425940896514,-1.4342057290811645) node {$rho = 10.2$};
  72. draw[color=qqwuqq] (-1.8539153488062472,-0.7589851397465746) node {$f$};
  73. draw[color=qqqqff] (0.5027369041654571,-6.518219578188664) node {$g$};
  74. draw[color=black] (1.2044367322974814,-1.9902697438272972) node {$A$};
  75. end{scriptsize}
  76. end{axis}
  77. end{tikzpicture}
  78. end{document}
Add Comment
Please, Sign In to add comment