【发布时间】:2018-03-29 15:23:51
【问题描述】:
我试图用 x=1 的隐式微分问题求解斜率,但 NSolve 无法解决。我该如何解决这个问题?
eqn[x_, y_] := x*Sin[y] - y*Sin[x] == 2 (*note: bound is -5<=x<=5,-5<=y<=5*)
yPrime = Solve[D[eqn[x, y[x]], x], y'[x]] /. {y[x] -> y,
y'[x] -> y'} // Simplify
{{Derivative[1][y] -> (y Cos[x] - Sin[y])/(x Cos[y] - Sin[x])}}
NSolve[eqn[x, y] /. x -> 1, y] (*this doesn't work*)
【问题讨论】:
-
为什么定义
yPrime然后不使用呢? “隐式微分”在哪里?不清楚你在问什么。
标签: wolfram-mathematica calculus