这是一个奇怪的结果,在这个例子中定义为"functionB"的函数.有人可以解释一下吗?我想绘制functionB[x]和functionB[Sqrt[x]],它们必须是不同的,但是这个代码表示functionB[x] = functionB[Sqrt[x]],这是不可能的.
model = 4/Sqrt[3] - a1/(x + b1) - a2/(x + b2)^2 - a3/(x + b3)^4;
fit = {a1 -> 0.27, a2 -> 0.335, a3 -> -0.347, b1 -> 4.29, b2 -> 0.435,
b3 -> 0.712};
functionB[x_] := model /. fit
Show[
ParametricPlot[{x, functionB[x]}, {x, 0, 1}],
ParametricPlot[{x, functionB[Sqrt[x]]}, {x, 0, 1}]
]
Run Code Online (Sandbox Code Playgroud)
functionB[x]必须与之不同functionB[Sqrt[x]],但在这种情况下,两条线是相同的(这是不正确的).