找回密码
 快速注册
搜索
查看: 91|回复: 1

pgfmathparse中的^^是什么意思

[复制链接]

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2022-12-25 07:27 |阅读模式
  1. \documentclass{article}
  2. \usepackage{pgf}
  3. \begin{document}
  4. \pgfmathparse{1^^2} \pgfmathresult
  5. \pgfmathparse{2^^2} \pgfmathresult
  6. \end{document}
复制代码

输出
57.29578
114.59155
就是1 rad和2 rad的度数
$180/π=57.29578$

为什么是这样呢?
我在TikZ手册只找到
x ^ y  (infix operator; uses the pow function)
    Raises x to the power y.

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2022-12-25 07:47
^^2对应r
^^3对应s
^^4对应t
  1. \documentclass{article}
  2. \usepackage{pgf}
  3. \begin{document}
  4. \pgfmathparse{1r} \pgfmathresult
  5. \end{document}
复制代码

1r 也输出57.29578

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

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

Powered by Discuz!

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