Menu

#1939 integrate(x*(cos(x/2)),x)

closed
nobody
5
2010-03-27
2010-03-27
peach
No

integrate(x*(cos(x/2)),x)
and
f(n):=expand(integrate(x*(n+cos(x/2)),x)-integrate(n*x,x));
are same function
but...
When n are even numbers, results are always 1/2

(%i2) f(1);
(%o2) 2*x*sin(x/2)+4*cos(x/2)
(%i3) f(2);
(%o3) x*sin(x/2)+2*cos(x/2)
(%i4) f(3);(%o4) 2*x*sin(x/2)+4*cos(x/2)
(%i5) f(4);
*****
if f(n) is defined as
f(n):=expand(integrate(x*n+x*cos(x/2),x)-integrate(n*x,x))
f(n) gives always correct answer.

(%o5) x*sin(x/2)+2*cos(x/2)

Discussion

  • Raymond Toy

    Raymond Toy - 2010-03-27
    • status: open --> pending
     
  • Raymond Toy

    Raymond Toy - 2010-03-27

    What version are you using?

    Current CVS gives f(n) gives 2*x*sin(x/2)+4*cos(x/2).

    Marking as pending/worksforme

     
  • peach

    peach - 2010-03-27
    • status: pending --> open
     
  • peach

    peach - 2010-03-27

    Yes, I checked using newest version.
    This bug has been fixed in version
    Maxima 5.20.1 http://maxima.sourceforge.net
    using Lisp GNU Common Lisp (GCL) GCL 2.6.8 (a.k.a. GCL)
    Distributed under the GNU Public License. See the file COPYING.
    Dedicated to the memory of William Schelter.
    The function bug_report() provides bug reporting information.
    ***********
    first version is
    Maxima version: 5.15.0
    Maxima build date: 17:36 4/20/2008
    host type: i686-pc-mingw32
    lisp-implementation-type: GNU Common Lisp (GCL)
    lisp-implementation-version: GCL 2.6.8

     
  • peach

    peach - 2010-03-27
    • status: open --> closed
     

Log in to post a comment.