0
$\begingroup$

I do not understand why I get different answers for the following two identical integrals.

Integrate[Cos[10*Pi (z - x)], {x, 1/10, 1}, Assumptions :> {}] Integrate[Cos[10*Pi (z - x)], {x, 1/10, 1}, Assumptions :> {x > 0}] 

Output (respectively):

-Sin[10Pi*z]/5Pi Sin[10Pi*z]/5Pi 

Running version 9. Any help would be very appreciated. Thanks!

$\endgroup$
5
  • $\begingroup$ I get the same output for each line from version 10.0.0 under Windows. What version are you running and what output do you get? $\endgroup$ Commented Aug 27, 2014 at 22:06
  • $\begingroup$ What did you get? I've checked results im Mathematica versions 7 and 10; they were the same however in version 8 the results were different by the sign (a bug). $\endgroup$ Commented Aug 27, 2014 at 22:06
  • $\begingroup$ Updated question- have similar sign issue in 9.0.0. So (-) is correct? $\endgroup$ Commented Aug 27, 2014 at 22:16
  • $\begingroup$ There were certain problems in ver. 8 with Integrate, they have been fixed though not all, see e.g. Mathematica gives wrong answer for an integral, in ver. 9: Mathematica 9 can't integrate this function but earlier versions could or Bug in analytic integration? $\endgroup$ Commented Aug 27, 2014 at 22:19
  • $\begingroup$ This is a trivial excersise, so you shouldn't ask, just verify it! $\endgroup$ Commented Aug 27, 2014 at 22:22

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.