How to solve this equation S= integrate((1-2*x).^2)./((x-x.^2).^2)) dt
    조회 수: 14 (최근 30일)
  
       이전 댓글 표시
    
I want to solve this integration for time where t= 0:1
댓글 수: 1
  Alberto
      
 2014년 9월 25일
				By the way, you should check the variables in your function, and the integration variable. I assumed dt really meant dx to you.
답변 (1개)
  Alberto
      
 2014년 9월 25일
        This is how you should try:
syms x
f=((1-2*x).^2)/( (x-x.^2).^2   )
int(f)
ans =
2*log(x - 1) - 2*log(x) + (2*x - 1)/(- x^2 + x)
int(f,0,1)
ans =
Inf
댓글 수: 2
  Alberto
      
 2014년 9월 25일
				I've notices, i just thought it was a typo. Do this then:
syms x t
f=((1-2*x).^2)/( (x-x.^2).^2   )
int(f,t,0,1)
ans =
(2*x - 1)^2/(x - x^2)^2
참고 항목
카테고리
				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!