Skip to content

Commit

Permalink
Modified vector.tex
Browse files Browse the repository at this point in the history
  • Loading branch information
hamukazu committed Jul 17, 2023
1 parent 1c9a2f9 commit 2f1fcd6
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tex/main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
\usepackage{amssymb,amsfonts}
\usepackage[fleqn]{amsmath}
\usepackage{graphicx}
\usepackage{pifont}
\usepackage{tikz}
\usepackage{bm}
\usetikzlibrary{intersections,calc,arrows.meta,
decorations.pathreplacing,positioning,angles,quotes}
decorations.pathreplacing,
decorations.pathmorphing,
decorations.text,
positioning,angles,quotes}
\title{数学図案集}
\author{加藤公一 Kimikazu KATO}
\西
Expand Down
45 changes: 45 additions & 0 deletions tex/vector.tex
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,48 @@ \chapter{ベクトル}
\draw[-Stealth](O)--(E)node[midway, right]{$\bm{x}$}node[below right]{X};
\end{tikzpicture}
\end{figure}
\begin{figure}[!ht]\caption{内分点}
\begin{tikzpicture}
\coordinate(P) at (0,0);
\coordinate(Q) at (3,1);
\coordinate(R) at ($(P)!1/4!(Q)$);
\draw (P)--(Q);
\foreach \i in {1,...,3}
\draw ($(P)!{\i/4}!(Q)!1mm!90:(Q)$)--($(P)!{\i/4}!(Q)!1mm!-90:(Q)$);
\foreach \i in {0,...,3}
{
\draw ($(P)!{\i/4+1/8-0.01}!(Q)!0.5mm!90:(Q)$)--($(P)!{\i/4+1/8-0.01}!(Q)!0.5mm!-90:(Q)$);
\draw ($(P)!{\i/4+1/8+0.01}!(Q)!0.5mm!90:(Q)$)--($(P)!{\i/4+1/8+0.01}!(Q)!0.5mm!-90:(Q)$);
}
\draw (P) [bend left=50]to (R);
\draw [decorate, decoration={raise=2pt, text along path, text={\ding{172}}, text align={center}}] (P) [bend left=50]to (R);
\draw (R) [bend left=15]to (Q);
\draw [decorate, decoration={raise=2pt, text along path, text={\ding{174}}, text align={center}}] (R) [bend left=15]to (Q);
\fill(P) circle[radius=1pt] node[below]{P};
\fill(Q) circle[radius=1pt] node[below]{Q};
\fill(R) circle[radius=1pt] node[below]{R};
\end{tikzpicture}
\end{figure}
\begin{figure}[!ht]\caption{外分点}
\begin{tikzpicture}
\coordinate(P) at (0,0);
\coordinate(R) at (3,1);
\coordinate(Q) at ($(P)!{2/3}!(R)$);
\draw (P)--(Q);
\draw[dashed] (Q)--(R);
\foreach \i in {1,...,2}
\draw ($(P)!{\i/3}!(R)!1mm!90:(Q)$)--($(P)!{\i/3}!(R)!1mm!-90:(Q)$);
\foreach \i in {0,...,2}
{
\draw ($(P)!{\i/3+1/6-0.01}!(R)!0.5mm!90:(Q)$)--($(P)!{\i/3+1/6-0.01}!(R)!0.5mm!-90:(Q)$);
\draw ($(P)!{\i/3+1/6+0.01}!(R)!0.5mm!90:(Q)$)--($(P)!{\i/3+1/6+0.01}!(R)!0.5mm!-90:(Q)$);
}
\draw (P) [bend left=20]to (R);
\draw [decorate, decoration={raise=2pt, text along path, text={\ding{174}}, text align={center}}] (P) [bend left=20]to (R);
\draw (R) [bend left=40]to (Q);
\draw [decorate, decoration={raise=-3mm, text along path, text={\ding{172}}, text align={center}}] (Q) [bend right=40]to (R);
\fill(P) circle[radius=1pt] node[below]{P};
\fill(Q) circle[radius=1pt] node[below]{Q};
\fill(R) circle[radius=1pt] node[below]{R};
\end{tikzpicture}
\end{figure}

0 comments on commit 2f1fcd6

Please sign in to comment.