gpt4 book ai didi

wolfram-mathematica - Mathematica 降值 Lhs

转载 作者:行者123 更新时间:2023-12-04 02:39:28 25 4
gpt4 key购买 nike

有谁知道 Mathematica 中是否有一个内置函数来获取降值规则的 lhs(没有任何持有)?我知道如何编写代码来做到这一点,但对于内置的

例如:

a[1]=2;
a[2]=3;
BuiltInIDoNotKnowOf[a]返回 {1,2}

最佳答案

这似乎有效;不过不确定它有多大用处:

a[1] = 2
a[2] = 3
a[3] = 5
a[6] = 8
Part[DownValues[a], All, 1, 1, 1]

关于wolfram-mathematica - Mathematica 降值 Lhs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/135330/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com