Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. documentclass[border=5mm]{standalone}
  2. usepackage[dvipsnames]{xcolor}
  3. usepackage{tkz-euclide}
  4. usetkzobj{all}
  5.  
  6. begin{document}
  7.  
  8. begin{tikzpicture}
  9. % Set up the canvas
  10. tkzInit[xmin=0, xmax=7, ymin=0, ymax=4.5]
  11.  
  12. % Clip things outside the canvas
  13. tkzClip[space=0.5]
  14.  
  15. % Define two starting points on a horizontal
  16. tkzDefPoint(0,0){A}
  17. tkzDefPoint(5,0){C}
  18.  
  19. % Find a point perpendicular to A,C
  20. tkzDefPointWith[orthogonal,K=-0.9](C,A)
  21. % Give that new point a name
  22. tkzGetPoint{B}
  23.  
  24. % Find the point on the intersection between AC and a circle centered on A passing through B
  25. tkzInterLC(A,C)(A,B)
  26. tkzGetSecondPoint{B'}
  27.  
  28. % It doesn't really make sense to fill the sectors, since we're concerned with angles, not areas
  29. %tkzDrawSector[fill=BrickRed!40, draw=none](A,B')(B)
  30. %tkzDrawPolygon[fill=gray!20, draw=none](A,C,B)
  31. %tkzDrawSector[fill=Dandelion!60, draw=none](A,C)(B)
  32.  
  33. % Draw the segments
  34. tkzDrawSegments[gray](A,B A,B')
  35. tkzDrawSegment[black, very thick](C,B)
  36.  
  37. % Draw the arcs
  38. tkzDrawArc[draw=BrickRed, very thick](A,C)(B)
  39. tkzDrawArc[draw=MidnightBlue, very thick](A,B')(B)
  40.  
  41. % Label the points
  42. tkzLabelPoints[below left](A)
  43. tkzLabelPoints[above](B)
  44. tkzLabelPoints[below](C)
  45.  
  46. % Get the radii of the sectors so we can place the sector labels nicely
  47. tkzCalcLength[cm](A,B)tkzGetLength{rAB}
  48. tkzLabelAngle[pos=(rAB), anchor=south west, text=MidnightBlue](B,A,C){$theta$}
  49.  
  50. tkzCalcLength[cm](A,C)tkzGetLength{rAC}
  51. tkzLabelAngle[pos=(rAC), anchor=north east, text=BrickRed!70!black](B,A,C){$thetacostheta$}
  52.  
  53. tkzLabelSegment[anchor=west](C,B){$sintheta$}
  54. end{tikzpicture}
  55.  
  56.  
  57. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement