How to solve this equation S= integrate((1-2*x).^2)./((x-x.^2).^2)) dt
Ältere Kommentare anzeigen
I want to solve this integration for time where t= 0:1
1 Kommentar
Alberto
am 25 Sep. 2014
By the way, you should check the variables in your function, and the integration variable. I assumed dt really meant dx to you.
Antworten (1)
Alberto
am 25 Sep. 2014
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 Kommentare
Avan Al-Saffar
am 25 Sep. 2014
Alberto
am 25 Sep. 2014
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
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!