mathematica中/.%什么意思

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/05 23:08:10
mathematica中/.%什么意思

mathematica中/.%什么意思
mathematica中/.%什么意思

mathematica中/.%什么意思
/.表示ReplaceAll ,%代表最后一次output.
输入{x,x^2,y,z} /.x -> a
输出{a,a^2,y,z}

/表示除法吧,.一般表示向量的内积(数量积),%有一种表示是求余运算,另一种和数字结合表示第几个输出,如%5,表示第5个输出