How can I get the exact result with this code?
1 次查看(过去 30 天)
显示 更早的评论
Hi, I'm trying to integrate the expression shown. Just wondering how I could get the same exact result? or what am I doing wrong? any help will be greatly appreciated. Thanks
syms x f(x)
L = 1;
f(x) = 5*(x.^0.33);
h = (1/L)*int(f(x), x, 0, L)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1301195/image.png)
1 个评论
John D'Errico
2023-2-20
Even disregarding the sign error in the exponent (as correctly pointed out in the answer), 0.33 is not equal to 1/3.
采纳的回答
Dyuman Joshi
2023-2-20
The power to x was incorrect
syms f(x)
L = 1;
f(x) = 5*(x.^(-1/3));
h = (1/L)*int(f(x), 0, L)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!