Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我用matlab写
cos(pi/4)
我得到这个表格:
0.7071
当我更希望获得 (2)^(1/2)/2 的实际值以更清楚地编写公式时。有没有办法按照我的要求做?
您可以使用许多 Matlab 安装附带的符号数学工具箱:
theta = sym(pi)/4; cos(theta)
返回
ans = 2^(1/2)/2