Why is matlab showing the wrong answer?
显示 更早的评论
I'm trying to do a definite integral of the function
. This should be equal to
but MATLAB keeps giving me the answer of
. Is my code wrong?
syms x y t
yint = t^2-(1/t)*y*(t/57)
int(yint, t, 57*x, 0)
回答(1 个)
The limits are reversed in the int call.
syms x y t
yint = t^2-(1/t)*y*(t/57)
int(yint, t, 0, 57*x)
.
类别
在 帮助中心 和 File Exchange 中查找有关 Assumptions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!