四 152008
有个哥们问 R 怎么做椭圆,结果只记得直角坐标系下的方程。
服了自己了,居然忘记了极坐标方程的简便性,看来高中白学了。
还好参数方程还记得一些:
\begin{equation*} (\frac{x}{a})^2+(\frac{y}{b})^2 = 1 \Longrightarrow x=a\sin \theta ,y = b\cos \theta, 0<\theta<2\pi \end{equation*}
有个哥们问 R 怎么做椭圆,结果只记得直角坐标系下的方程。
服了自己了,居然忘记了极坐标方程的简便性,看来高中白学了。
还好参数方程还记得一些:
\begin{equation*} (\frac{x}{a})^2+(\frac{y}{b})^2 = 1 \Longrightarrow x=a\sin \theta ,y = b\cos \theta, 0<\theta<2\pi \end{equation*}