
Riemanns_integral error
    3 ビュー (過去 30 日間)
  
       古いコメントを表示
    
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?
. 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?
 . 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?
. 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
0 件のコメント
回答 (1 件)
  KALYAN ACHARJYA
      
      
 2021 年 3 月 14 日
        Error using sym/rsums
Too many output arguments.
"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

参考
カテゴリ
				Help Center および File Exchange で Calculus についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

