我试图理解Mathematica代码,以便能够在python中复制它:
我在Mathematica中的函数
Deulab[c_, yh1_, a_, b_] := {c - (EULab[c, yh1, a, b] - 1) * 0.3, yh1, a, b}
其中我已经在上面定义了EULab
花括号是什么意思?我如何解释这段代码,然后在python中复制它
Mathematica
DDeulab[T_] := Deulab@@T
什么是@@ T
以及它在python中的等价物是什么
Mathematica
Coab[yh_, a_, b_] := Last[NestList[DDeulab, {1, yh, a, b}, 50]][[1]]
Last[NestList][[1]]
是什么意思,在python中也是等价的
您是否尝试过使用wolfram客户端
https://reference.wolfram.com/language/WolframClientForPython/
他们的参考文件呢
https://reference.wolfram.com/language/ref/List.html
{a,b,c}表示一个向量
但在本例中,您有4个元素,因此它看起来像一个列表
https://reference.wolfram.com/language/ref/Apply.html
适用于
这就是应用一个函数,即f[a,b,c,d]
相关问题 更多 >
编程相关推荐