Forgot password
 Register account
View 302|Reply 1

pgfmathparse中的^^是什么意思

[Copy link]

3211

Threads

7832

Posts

52

Reputation

Show all posts

hbghlyj posted 2022-12-25 07:27 |Read mode
  1. \documentclass{article}
  2. \usepackage{pgf}
  3. \begin{document}
  4. \pgfmathparse{1^^2} \pgfmathresult
  5. \pgfmathparse{2^^2} \pgfmathresult
  6. \end{document}
Copy the Code
输出
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.

3211

Threads

7832

Posts

52

Reputation

Show all posts

original poster hbghlyj posted 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}
Copy the Code
1r 也输出57.29578

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-20 05:55 GMT+8

Powered by Discuz!

Processed in 0.010932 seconds, 22 queries