Author Topic: Problem with integrate  (Read 663 times)

Offline chrisbx

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Problem with integrate
« on: February 23, 2010, 08:53:22 PM »
I have a big problem...

I tried this function

     int(sin(x)^2,x)

and it finds

     x/2-sin(2x)/4

which is the good result. OK...

BUT if I try

     int(sin(x)^2,x,0,π)

the result is

     π/4

which is a BAD result (the good one being π/2) !

It is a big problem because I cannot trust any result if I find just one error...

Online MrMage

  • Administrator
  • *****
  • Posts: 399
  • Karma: 3
Re: Problem with integrate
« Reply #1 on: February 23, 2010, 09:06:55 PM »
Hello,

Thank you for your feedback! You are right, this is a bug. I will make sure to forward it to the developer of the CAS. For the time being, you can still use the nInt() command which will return 1.57..., e.g. π/2 numerically.

Cheers

Daniel

Offline chrisbx

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Problem with integrate
« Reply #2 on: February 23, 2010, 09:10:04 PM »
Thank you very much for your answer !  :)

I hope a corrected upgrade will come soon because it is a very useful app.

Offline neo1111

  • Newbie
  • *
  • Posts: 5
  • Karma: 1
Re: Problem with integrate
« Reply #3 on: March 01, 2010, 08:48:07 AM »
I tried it with xcas, and it says this...

searching int of (-x^2+2*x-1)/(4*x^2) where x is on the unit circle, using residues

(1/2)*pi/2

hmmm...
tried with alt form ( 1/2 * ( 1-cos ( 2*x))) , got same result...

oh well, if they just lower the price of wolfram alpha by 10x !!!

still a great program...




Offline masterod

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
problem with the integral
« Reply #4 on: March 03, 2010, 12:01:24 AM »
Hi. I want to calculate this simple integral , but the result is wrong

I write :

simplify(int(sin(x)^2,x,0,pi)

and the result is pi/4 , which is wrong!!!

The right one is pi/2.

The indefinate integral is correct,

x/2-sin(2x)/4

Please try to correct this bug, because i hate to loose points at my exams from these kind of
mistakes.

Thank you in advance.

Online MrMage

  • Administrator
  • *****
  • Posts: 399
  • Karma: 3
Re: Problem with integrate
« Reply #5 on: March 05, 2010, 02:32:35 PM »
This bug should be fixed in the next release of PocketCAS. Please confirm as soon as that release will be available.

Offline chrisbx

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Problem with integrate
« Reply #6 on: March 25, 2010, 08:49:51 PM »
Bux fixed ! thank you very much !!!  :D