translating and solving an equation with values of x and y known
1 次查看(过去 30 天)
显示 更早的评论
m = 2*x.^3-2*y-sqrt((x-y.^3)./(1+(x-y)./(x.^2+3))+((sin(x./y*pi))+exp(y/3)))
with x=3.53 and y=2.8
i get an answer of 82.3740 - 3.9723i
0 个评论
回答(1 个)
Star Strider
2021-9-21
In the third term, the square root is of the numerator only, not the entire expression, amd the denominator does not appear to have been coded correctly.
x=3.53
y=2.8
m = 2*x.^3-2*y-sqrt(x-y.^3)./(1+((x-y)./(x.^2+3)))+sin(x./y*pi)+exp(y/3)
These changes only slightly change the result.
.
3 个评论
Star Strider
2021-9-21
That change is significant (note the added parentheses in the square root argument).
x=3.53
y=2.8
m = 2*x.^3-2*y-sqrt((x-y).^3)./(1+((x-y)./(x.^2+3)))+sin(x./y*pi)+exp(y/3)
.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!