9月
08
Mathematica笔记
划横线:
用Ctrl+Shift+E展开Cell然后添加:
CellFrame->{{0, 0}, {0, 1}}
再用Ctrl+Shift+E缩起来,就可以搞出横线来啦
多位数分解成一位一位的:
IntegerDigits[158]
{1, 5, 8}
RealDigits
反操作:FromDigits
给出二项式系数
Binomial[10, 3] = 120
Take:
取List中前n个数或后n个数或中间某n个数
DictionaryLookup:
英文词典根据正则表达式查找单词
Total:
对于一维List:所有元素之和
对于矩阵:同列求和
根据List来画三维图:
ListPointPlot3D[Table[Sin[j^2 + i], {i, 0, 3, 0.1}, {j, 0, 3, 0.1}]] 阅读全文…