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)
댓글 수: 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에서 Assumptions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!