LaTex コード〔円錐曲線〕

数学プリント作成に使ってください

円錐曲線 tex コード

\begin{tikzpicture}
\drawblack ellipse (2 and 0.5);
\drawblack ellipse (2 and 0.5);
\draw — (-1.05,-2.88);
\draw — (-1.05,2.88);
\draw — (1.05,-2.88);
\draw — (1.05,2.88);

\drawblue, ultra thick ellipse (0.4 and 0.1);
\draw — (-2.2,-0.8);
\draw — (-3.4,-0.4);
\draw — (-2.6,-0.4);
\draw — (-3.3,-0.4);
\draw — (-2.7,-0.4);
\drawdashed — (-3.3,-0.4);
\node[] at (-2,-0.4) {円};

\drawrotate around={20:(-3.26,-1.72)}, blue, ultra thick ellipse (1.2 and 0.2);
\draw — (-1.5,-1.5);
\draw — (-4.4,-1.85);
\draw — (-4.1,-1.7);
\draw — (-2,-0.88);
\draw — (-2.3,-1);
\drawdashed — (-4.1,-1.7);
\node[] at (-1.2,-1.7) {楕円};

\drawblue, ultra thick .. controls (-4.5,1.2) and (-4.2,1.5) .. (-3,2.5);
\drawdotted, blue, thick — (-3,2.5);
\draw — (-4,0.5);
\draw — (-4.1,3.8) coordinate (A);
\draw — (-4.9,2) coordinate (B);
\drawdashed — (B);
\draw — (-4.28,3.4);
\draw — (-4.7,2.45);
\node[] at (-2,2.2) {放物線};

\draw coordinate (A) — (4.5,2.8) coordinate (B);
\drawdashed — (3.1,-2.5) coordinate (C);
\draw — (3.2,3.7) coordinate (D);
\drawdashed — (D);
\drawblue, ultra thick coordinate (E) .. controls (4,-0.9) and (3.8,-0.6) .. (3.3,-2.5) coordinate (F);
\drawdotted, blue, thick — (F);
\drawblue, ultra thick coordinate (G) .. controls (4,1) and (3.8,0.7) .. (3.3,3.5) coordinate (H);
\drawdotted, blue, thick — (H);
\draw — (4.1,-3.43);
\node[] at (2.5,2.2) {双曲線};

\pgfpathmoveto{\pgfpoint{-1cm}{-3cm}}
\pgfpatharcto{2cm}{0.5cm}{0}{0}{0}{\pgfpoint{-3cm}{-3.5cm}}
\pgfpathmoveto{\pgfpoint{-5cm}{-3cm}}
\pgfpatharcto{2cm}{0.5cm}{0}{0}{-1}{\pgfpoint{-3cm}{-3.5cm}}
\pgfstroke

\pgfsetdash{{3pt}{3pt}}{0pt}
\pgfpathmoveto{\pgfpoint{-1cm}{-3cm}}
\pgfpatharcto{2cm}{0.5cm}{0}{0}{-1}{\pgfpoint{-3cm}{-2.5cm}}
\pgfpathmoveto{\pgfpoint{-5cm}{-3cm}}
\pgfpatharcto{2cm}{0.5cm}{0}{0}{0}{\pgfpoint{-3cm}{-2.5cm}}
\pgfstroke

\pgfsetdash{{3pt}{0pt}}{0pt}
\pgfpathmoveto{\pgfpoint{1cm}{-3cm}}
\pgfpatharcto{2cm}{0.5cm}{0}{0}{-1}{\pgfpoint{3cm}{-3.5cm}}
\pgfpathmoveto{\pgfpoint{5cm}{-3cm}}
\pgfpatharcto{2cm}{0.5cm}{0}{0}{0}{\pgfpoint{3cm}{-3.5cm}}
\pgfstroke

\pgfsetdash{{3pt}{3pt}}{0pt}
\pgfpathmoveto{\pgfpoint{1cm}{-3cm}}
\pgfpatharcto{2cm}{0.5cm}{0}{0}{0}{\pgfpoint{3cm}{-2.5cm}}
\pgfpathmoveto{\pgfpoint{5cm}{-3cm}}
\pgfpatharcto{2cm}{0.5cm}{0}{0}{-1}{\pgfpoint{3cm}{-2.5cm}}
\pgfstroke
\end{tikzpicture}

よかったらシェアしてね!
  • URLをコピーしました!
  • URLをコピーしました!

この記事を書いた人

数学講師10年以上。大学入試、高校数学問題の「練習」によければつかってください!記事中の間違え、計算ミスやわかりにくい所はお問い合わせからご指摘いただければ幸いです。お気軽にご連絡ください。

目次