integral does not give results
    조회 수: 3 (최근 30일)
  
       이전 댓글 표시
    
x=sym('x')
int(((x*exp(-x/3))+tan(x)),0,5)
I can't find where I made the mistake, Matlab does not give results

댓글 수: 0
답변 (1개)
  Star Strider
      
      
 2020년 8월 24일
        It works for me (in R2020a): 
x=sym('x')
Int = int(x*exp(-x/3)+tan(x),x,0,5)
producing: 
Int =
NaN
To understand the results, plot the function: 
figure
fplot(x*exp(-x/3)+tan(x), [0,5])
grid
.
댓글 수: 7
  Bruno Luong
      
      
 2020년 8월 24일
				This might be useful
syms x
Int = int(x*exp(-x/3)+tan(x),x,0,5,'PrincipalValue',true)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
