(wx)Maxima:return 表达式使用 `sec` `csc` 和 `cot` 而不是倒数?

(wx)Maxima: return expressions using `sec` `csc` and `cot` instead of reciprocals?

目前,涉及 sec 或其他倒数三角函数的输入的输出似乎是 return 表达式的倒数,例如:

expand(integrate(6*sec(2*y)^7*tan(2*y)^3, y));
>  1/(3*cos(2*y)^9)\-3/(7*cos(2*y)^7)

有没有什么办法可以用 sec(2*y) 代替 return?我检查了 documentation for display and the documentation for trigonometric functions 但没有看到任何似乎可以解决这个问题的内容。

看起来 trigreduce 处理了它(感谢 Stavros Macrakis 提供此信息)。

(%i2) 1/(3*cos(2*y)^9) - 3/(7*cos(2*y)^7);
                         1             3
(%o2)               ----------- - -----------
                         9             7
                    3 cos (2 y)   7 cos (2 y)
(%i3) trigreduce(%);
                        9             7
                     sec (2 y)   3 sec (2 y)
(%o3)                --------- - -----------
                         3            7