题库
试卷
组卷
图库
知识
双曲线
核心代码解释:
计算 $ \dfrac{x^2}{2} -y^2=1 $ 的图像,其参数方程为:
$x= \sqrt{2} sec t$
$y=tan t$
t为参数方程
其图像 \tikz \draw[domain = ? : ?] plot ({1.414*sec(\x r)},{tan (\x r)});
这里的 1.414 是 $\sqrt{2}$ 的近似值,也可以替换成 \sqrt(2) 。 r紧随\x 之后表示将角度转换为弧度制(默认是角度制)。
现在要填上问号的内容。令 $x=4$ ,即 $\sqrt{2} sec t=4$ 又因为 $sec t= \dfrac{1}{\cos t}$ 所以 $cos t= \dfrac{1}{2\sqrt{2}}$ ,按一下计算器,可以得到 $t=1.209$ (弧度制),因此 ? 填写 1.209.
\documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{positioning, calc} \begin{document} \begin{tikzpicture} \draw[->] (-5,0) -- (5,0) node[below] {$x$}; %作x轴并标上字母 \draw[->] (0,-3) -- (0,3) node[left] {$y$}; %作y轴并标上字母 \node[below left] at (0,0) {$O$}; %标上原点字母 \draw[domain=-1.209:1.209] plot ({1.414*sec(\x r)}, {tan(\x r)} ); % y^2/2-x^2=1 \draw[domain=-1.209:1.209] plot ({-1.414*sec(\x r)}, {-tan(\x r)} ); \end{tikzpicture} \end{document}