Thanks guys! I didn't know about the fu() function. Dario On Sunday, October 12, 2014 12:50:10 AM UTC+1, Aaron Meurer wrote: > > That's correct. If integrate() returns an unevaluated Integral, it > means the algorithm couldn't compute an integral. The fu() function is > able to simplify this expression (it equals 2*sin(x)), so > integrate(fu(fx), x) works. > > Aaron Meurer > > On Sat, Oct 11, 2014 at 6:06 AM, Francesco Bonazzi > <[email protected] <javascript:>> wrote: > > I guess the algorithm is unable to determine the integral function. > > > > On Saturday, October 11, 2014 8:45:42 AM UTC, Dario Beraldi wrote: > >> > >> Hello, > >> > >> I have the function fx for which I want to evaluate the indefinite > >> integral: > >> > >> x= symbols('x') > >> fx= (sin(4*x) - sin(2*x)) / (cos(3*x)) > >> i= integrate(fx) > >> print i > >> ## Integral((-sin(2*x) + sin(4*x))/cos(3*x), x) > >> > >> Now, how can I evaluate i to obtain the "expected" -2*cos(x) + c as per > >> here > >> > http://www.wolframalpha.com/input/?i=integrate%28%28sin%284*x%29+-+sin%282*x%29%29+%2F+%28cos%283*x%29%29%29 > > >> > >> I tried i.evalf(), i.doit() with no luck. > >> > >> Again, many thanks for help! > >> > >> Dario > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "sympy" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to [email protected] <javascript:>. > > To post to this group, send email to [email protected] > <javascript:>. > > Visit this group at http://groups.google.com/group/sympy. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/sympy/6788d9f9-659d-48ab-bb68-3b3c8745bbe4%40googlegroups.com. > > > > > > For more options, visit https://groups.google.com/d/optout. >
-- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/b0ac5787-fd8c-4d09-970b-984e9ba81ebc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
