我尝试在 (x,y) 坐标的 x 坐标部分调用数学函数,但无济于事。奇怪的是,它对 y 坐标有效。语法一定有问题,但我搞不清楚。
此代码演示了这个问题:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0) to [out=30,in=-120] (.5,{cos(60)}); % WORKS
\draw (0,0) to [out=30,in=-120] ({.5},{cos(60)}); % WORKS
\draw (0,0) to [out=30,in=-120] ({sin(30)},.5); % ATTEMPT 1: DOES NOT WORK
\draw (0,0) to [out=30,in=-120] (sin(30),.5); % ATTEMPT 2: DOES NOT WORK
\draw (0,0) to [out=30,in=-120] ({sin(30)},{.5}); % ATTEMPT 3: DOES NOT WORK
\draw (0,0) to [out=30,in=-120] ({sin(30),.5}); % ATTEMPT 4: DOES NOT WORK
\draw (0,0) to [out=30,in=-120] {(sin(30),.5)}; % ATTEMPT 5: DOES NOT WORK
\draw (0,0) to [out=30,in=-120] ({{sin(30)},.5}); % ATTEMPT 6: DOES NOT WORK
\draw (0,0) to [out=30,in=-120] {({sin(30)},.5)}; % ATTEMPT 7: DOES NOT WORK
\end{tikzpicture}
\end{document}
非常感谢您的帮助。谨致问候,