mathematica
猪猪虾的业余生活
这个作者很懒,什么都没留下…
展开
-
mathematica画图
plotF = Plot[{f[\[Lambda]] //. {R -> R0, v -> v0, \[Gamma] -> tmpGamma, x0 -> rx, y0 -> ry}}, {\[Lambda], 0, 2 \[Pi]}, PlotLegends -> "f[\[Lambda]]"];plotZeros = Graphics[{{PointSize[Large], Red, Point[solnList]}}];Show[{plo原创 2022-02-28 21:46:51 · 1432 阅读 · 0 评论 -
mathemethic学习笔记
1.函数变量替换对的问题对函数内的变量进行替换,下面这个是可以正常运行的,其他的就运行不了,是什么东西a1 = 6;f[x_] := x^2 + 3 x + aPrint["F = " , f[2] /. a -> a1];这个就无法运行。。显示 a2->10 既不是替换规则列表,也不是一个有效的分派表,因此无法用来替换a3 = 10;f[c_] := c + a2 ;Print[ " f = ", f[2] /. a2 -> a3];最后发现是,在函数里面的要被替原创 2022-01-04 21:41:05 · 1088 阅读 · 0 评论