Riemanns_integral error

조회 수: 2 (최근 30일)
Coolman
Coolman 2021년 3월 14일
댓글: Coolman 2021년 3월 14일
I am trying to use rsums for riemanns. For this equation . I know it simplifies down too umax=2uavg but its more for evidence using the 2 methods mentioned before. my main problem for Riemanns is having this error. could someone explain what I am doing wrong?
Error using sym/rsums
Too many output arguments.
Error in LiveEditorEvaluationHelperESectionEval>Riemanns_integral (line 122)
B1 = rsums(B,[0,R],r);
Error while evaluating UIControl Callback
function Riemanns_integral(~,~) % value entery for the function
uavg = input('average velocity m/s ');
R= input('inner radius m ');
syms r
T = uavg*pi*R^2;
B = (1-(r/R)^2)*r;
B1 = rsums(B,[0,R],r);
B2 = rsums(B1,[0,2*pi],x)
UmaxRI = T/B2

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 3월 14일
Error using sym/rsums
Too many output arguments.
If you check the MATLAB docs of rsums: Which is function for displays a iteractive graph
"rsums(f) displays a iteractive graph of f(x) using 10 terms (rectangles).", Hence it might be not accept any output arguments (probable reason).
function Riemanns_integral(~,~) % value entery for the function
uavg = input('average velocity m/s ');
R= input('inner radius m ');
syms r
T = uavg*pi*R^2;
B = (1-(r/R)^2)*r;
rsums(B,[0,R]);
%B2 = rsums(B1,[0,2*pi],x)
%UmaxRI = T/B2
  댓글 수: 1
Coolman
Coolman 2021년 3월 14일
strange my lecturer told me that I have to use Riemanns integral to get the answer of the double intergral any idea how I could do it then?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by