A-Level Maths
Courses
Papers
Questions
Hardest
Spec
Trends
Bookmarks
0
Diagrams
Search
Diagram Generations
22
Review auto-generated TikZ diagrams. Source image on the left, rendered TikZ on the right.
Pending
Approved
Rejected
All
5759
Q4
(CAIE M2 2009 June) — image 0
approved
Source (PDF)
Rendered TikZ
TikZ Code
Recompile
\begin{tikzpicture}[>=Stealth] % Main circle (sphere cross-section) \coordinate (C) at (0,0); % centre of sphere \coordinate (H) at (0,-0.3*4); % centre of horizontal circle, 0.3 m below centre (scaled by 4) \def\R{2} % radius of sphere scaled (0.5 m * 4) \def\d{1.2} % 0.3 m * 4 = vertical distance below centre % Radius of horizontal circle: sqrt(0.5^2 - 0.3^2) = 0.4 m, scaled by 4 = 1.6 \def\r{1.6} % Draw the outer circle (sphere) \draw[thick] (C) circle (\R); % Draw the horizontal dashed circle (as an ellipse seen from an angle) \draw[dashed] (H) ellipse ({\r} and {0.35}); % Draw radius line from centre to a point on the circle (upper right) \coordinate (P) at ({\r*cos(30)}, {-\d + \r*sin(30)*0.35/\r}); % Actually, let's draw a line from centre to the sphere surface to show 0.5 m \coordinate (S) at ({1.2}, {1.6}); % a point on the sphere, upper right area % Better approach: draw the radius to a point on the sphere % Point on sphere at some angle \pgfmathsetmacro{\ang}{50} \coordinate (S) at ({\R*cos(\ang)}, {\R*sin(\ang)}); \draw[dashed] (C) -- (S); \node[right] at ({0.5*\R*cos(\ang)+0.15}, {0.5*\R*sin(\ang)+0.1}) {$0.5\,\mathrm{m}$}; % Draw vertical dashed line from centre down to H showing 0.3 m \draw[dashed] (C) -- (H); % Mark the 0.3 m distance \node[left] at (-0.15, {-\d/2}) {$0.3\,\mathrm{m}$}; % Small tick marks or braces for 0.3 m \draw ({-0.08},0) -- ({0.08},0); \draw ({-0.08},{-\d}) -- ({0.08},{-\d}); % Draw a line from centre of sphere to the particle on the horizontal circle (on the sphere surface) % The particle sits where the horizontal circle meets the sphere \coordinate (Part) at ({\r}, {-\d}); % Draw line from C to particle \draw[dashed] (C) -- (Part); % Draw the particle as a filled dot \fill (Part) circle (0.06); % Small marks at centre \fill (C) circle (0.04); \fill (H) circle (0.04); \end{tikzpicture}
5719
Q5
(CAIE M2 2003 June) — image 0
approved
Source (PDF)
Rendered TikZ
TikZ Code
Recompile
\begin{tikzpicture}[>=Stealth] % Define coordinates \coordinate (O) at (0,0); \coordinate (top) at (0,5); \coordinate (aircraft) at (4.5,3.5); \coordinate (center) at (0,3.5); % Dashed vertical line upward from O \draw[dashed] (O) -- (center); % String from O to aircraft \draw (O) -- (aircraft); % Horizontal dashed circle (ellipse for perspective) % The aircraft moves in a horizontal circle at the height of the aircraft % Draw the ellipse centered on the vertical line at the aircraft's height % Draw back part of ellipse (dashed) \draw[dashed] (center) ellipse (4.5 and .8); % Draw front part of ellipse (solid) - over the top % Filled circle for aircraft \fill (aircraft) circle (3pt); % Label for string length: 9 m \node[right] at (2.8,1.8) {$9\,\mathrm{m}$}; % Angle arc for 60 degrees from upward vertical \draw (0,1.2) arc (90:37:1.2); \node[above right] at (0.3,0.6) {$60^\circ$}; % Label O \node[below left] at (O) {$O$}; \end{tikzpicture}
1
2