找回密码
 快速注册
搜索
查看: 404|回复: 7

为什么这样画不出来

[复制链接]

1

主题

4

回帖

26

积分

积分
26

显示全部楼层

The_Asagao 发表于 2021-8-16 20:50 |阅读模式
红色区域说是错误的,但第二个图为什么就可以?这个根号是怎么表示?
QQ截图20210816204511.png
QQ截图20210816204837.png

15

主题

958

回帖

1万

积分

积分
12454

显示全部楼层

色k 发表于 2021-8-16 21:06
代码复制上来啊,不然我们怎么试验

1

主题

4

回帖

26

积分

积分
26

显示全部楼层

 楼主| The_Asagao 发表于 2021-8-16 21:21
回复 2# 色k
  1. \documentclass[tikz]{standalone}
  2. \usepackage{tkz-euclide}
  3. \tikzset{xyz/.style={y={(-135:0.5cm)},x={(1cm,0)},z={(0,1cm)}}}
  4. \tikzstyle{every node}=[font=\small]
  5. \begin{document}
  6.         \begin{tikzpicture}[xyz,line width=0.7pt,line join=round,scale=2.6]
  7.                 \coordinate(A)at(0,0,1);
  8.                 \coordinate(B)at(-1,0,0);
  9.                 \coordinate(C)at(1,0,0);
  10.                 \coordinate(D)at(1,2,0);
  11.                 \draw(B)--(D)--(C)--(A)--(B) (A)--(D);
  12.                 \draw[dashed,line width=0.4pt](B)--(C);
  13.                 \tkzLabelPoints[above](A);
  14.                 \tkzLabelPoints[right](C);
  15.                 \tkzLabelPoints[left](B);
  16.                 \tkzLabelPoints[below](D);
  17.         \end{tikzpicture}
  18. \end{document}
复制代码

1

主题

4

回帖

26

积分

积分
26

显示全部楼层

 楼主| The_Asagao 发表于 2021-8-16 21:22
回复 2# 色k
  1. \documentclass[tikz]{standalone}
  2. \usepackage{tkz-euclide}
  3. \tikzset{xyz/.style={y={(-135:0.5cm)},x={(1cm,0)},z={(0,1cm)}}}
  4. \tikzstyle{every node}=[font=\small]
  5. \begin{document}
  6.         \begin{tikzpicture}[xyz,line width=0.7pt,line join=round,scale=2.6]
  7.                 \coordinate(A)at(0,0,{\sqrt(3)});
  8.                 \coordinate(B)at(-{\sqrt(3)},0,0);
  9.                 \coordinate(C)at({\sqrt(3)},0,0);
  10.                 \coordinate(D)at({\sqrt(3)},2,0);
  11.                 \draw(B)--(D)--(C)--(A)--(B) (A)--(D);
  12.                 \draw[dashed,line width=0.4pt](B)--(C);
  13.                 \tkzLabelPoints[above](A);
  14.                 \tkzLabelPoints[right](C);
  15.                 \tkzLabelPoints[left](B);
  16.                 \tkzLabelPoints[below](D);
  17.         \end{tikzpicture}
  18. \end{document}
复制代码

730

主题

1万

回帖

9万

积分

积分
93593
QQ

显示全部楼层

kuing 发表于 2021-8-16 21:46
回复 4# The_Asagao

去掉 \sqrt(3) 的 \ 即可,即:
  1. \coordinate(A)at(0,0,{sqrt(3)});
  2. \coordinate(B)at(-{sqrt(3)},0,0);
  3. \coordinate(C)at({sqrt(3)},0,0);
  4. \coordinate(D)at({sqrt(3)},2,0);
复制代码
酱紫

1

主题

4

回帖

26

积分

积分
26

显示全部楼层

 楼主| The_Asagao 发表于 2021-8-22 10:24
那这个分数\draw [thick] (frac{1}{3},0)--(2,0);怎么改成对的?

730

主题

1万

回帖

9万

积分

积分
93593
QQ

显示全部楼层

kuing 发表于 2021-8-22 12:58
回复 6# The_Asagao

\draw [thick] (1/3,0)--(2,0);

1

主题

4

回帖

26

积分

积分
26

显示全部楼层

 楼主| The_Asagao 发表于 2021-8-22 19:34
感谢ku版回复 7# kuing

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 12:27

Powered by Discuz!

× 快速回复 返回顶部 返回列表