~peterpall/maxima/+git/maxima.code:issue-4265-integrate-sin-cos-askequal

Last commit made on 2024-03-23
Get this branch:
git clone -b issue-4265-integrate-sin-cos-askequal https://git.launchpad.net/~peterpall/maxima/+git/maxima.code

Branch merges

Branch information

Name:
issue-4265-integrate-sin-cos-askequal
Repository:
lp:~peterpall/maxima/+git/maxima.code

Recent commits

868fb74... by Raymond Toy <email address hidden>

Remove debugging print and update comments.

3204792... by Raymond Toy <email address hidden>

Fix up abs_integrate test due to fixing bug 4265

Comment out the tests that no longer work (with a comment) and update
the test expectations due to the tests being renumbered.

db68b28... by Raymond Toy <email address hidden>

Don't check to see if abs_integrate is loaded.

As discussed on the mailing list, Barton says we shouldn't check to
see if abs_integrate is loaded when computing integrals of the form
trig(n*x)*trig(m*x) where trig is one of sin or cos.

ddab574... by Raymond Toy <email address hidden>

Fix #4265: integrate(sin(n*x)*sin(m*x),x,0,2*%pi) is always 0

integrate(sin(n*x)*sin(m*x),x,0,2*%pi) is 0 except when n=m. To fix
this, we ask the user if n=m. We also handle the integrands
cos(n*x)*cos(m*x) and cos(n*x)*sin(m*x).

However, this breaks abs_integrate when it is loaded. So, if it is
loaded, we don't ask the user in these cases.

The full testsuite including share tests pass.

1ad835e... by Raymond Toy <email address hidden>

Fix #4257: Remove code applying the subst y=c*x+b

The code in `monstertrig` that applied the substitution `y=c*x+b` was
to fix an issue with integrating `x*sin(n*x)` which used to take
longer and longer as the integer `n` became larger.

However, it appears this is no longer the case. As mentioned in
[#4257], even really large numbers are integrated instantly.

Remove this code. And add a test for this in rtest15.mac

Full testsuite + share passes.

cecb7c7... by Jaime Villate

One more fix to the clipping code in Xmaxima plots.

a033ecb... by Jaime Villate

Fixes an error in the counting of the number of points

285c26b... by Jaime Villate

Some code cleaning

ca82de9... by Jaime Villate

Adds line clipping to plotdf.

1221a68... by Jaime Villate

Improves line clippling in Xmaxima's plot2d
Some points that were being left out are now included and the code
can now be used to do clipping with the actual points or with their
representations on the screen.