Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update maxima to 5.42.2 #26625

Closed
antonio-rojas opened this issue Nov 3, 2018 · 30 comments
Closed

Update maxima to 5.42.2 #26625

antonio-rojas opened this issue Nov 3, 2018 · 30 comments

Comments

@antonio-rojas
Copy link
Contributor

Also change the command line argument from -r (run in interactive mode) to --batch-string (run in batch mode), which is what we want here. The only reason it worked before was a bug in maxima that made -r behave like batch mode [1]. This is fixed in 5.42, so using -r now makes the maxima interface hang waiting for input.

--batch-string also echoes the input, so we need to remove one more line before processing the output.

Tarball: ​https://vorboss.dl.sourceforge.net/project/maxima/Maxima-source/5.42.2-source/maxima-5.42.2.tar.gz

[1] ​https://sourceforge.net/p/maxima/mailman/message/36177637/

Depends on #12731

Upstream: Reported upstream. No feedback yet.

CC: @jdemeyer @kiwifb @timokau @saraedum @slel

Component: packages: standard

Keywords: upgrade, maxima

Author: Antonio Rojas

Branch/Commit: 2530dbf

Reviewer: François Bissey

Issue created by migration from https://trac.sagemath.org/ticket/26625

@antonio-rojas antonio-rojas added this to the sage-8.5 milestone Nov 3, 2018
@antonio-rojas
Copy link
Contributor Author

Branch: u/arojas/update_maxima_to_5_42_1

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 3, 2018

Commit: b1dc567

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 3, 2018

Branch pushed to git repo; I updated commit sha1. New commits:

b1dc567Update maxima to 5.42.1

@antonio-rojas
Copy link
Contributor Author

Author: Antonio Rojas

@antonio-rojas

This comment has been minimized.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 3, 2018

Branch pushed to git repo; I updated commit sha1. New commits:

bda2320Update one doctest for maxima 5.42

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 3, 2018

Changed commit from b1dc567 to bda2320

@kiwifb
Copy link
Member

kiwifb commented Nov 4, 2018

comment:7

No progress concerning the patch set. That's a bit annoying.

@kiwifb
Copy link
Member

kiwifb commented Nov 4, 2018

comment:8

I am getting

sage -t --long /usr/lib64/python2.7/site-packages/sage/symbolic/integration/integral.py
**********************************************************************
File "/usr/lib64/python2.7/site-packages/sage/symbolic/integration/integral.py", line 728, in sage.symbolic.integration.integral.integrate
Failed example:
    integrate(f, x, 0, 2*pi)  # long time (4s on sage.math, 2012)
Expected:
    integrate(abs(sin(x)), x, 0, 2*pi)
Got:
    0
**********************************************************************

@kiwifb
Copy link
Member

kiwifb commented Nov 4, 2018

comment:9

Which is wrong of course.

@kiwifb
Copy link
Member

kiwifb commented Nov 4, 2018

comment:10

And now that I look at the code in that area I see this is #10914 coming back.

    We will not get an evaluated answer here, which is better than
    the previous (wrong) answer of zero. See :trac:`10914`::
        sage: f = abs(sin(x))
        sage: integrate(f, x, 0, 2*pi)  # long time (4s on sage.math, 2012)
        integrate(abs(sin(x)), x, 0, 2*pi)

@antonio-rojas
Copy link
Contributor Author

comment:11

Replying to @kiwifb:

And now that I look at the code in that area I see this is #10914 coming back.

    We will not get an evaluated answer here, which is better than
    the previous (wrong) answer of zero. See :trac:`10914`::
        sage: f = abs(sin(x))
        sage: integrate(f, x, 0, 2*pi)  # long time (4s on sage.math, 2012)
        integrate(abs(sin(x)), x, 0, 2*pi)

Weird, since maxima does give the right answer now

@kiwifb
Copy link
Member

kiwifb commented Nov 4, 2018

comment:13

Since I was looking from the sage-on-gentoo perspective there is always the possibility that the maxima maintainer re-introduced a bug (doubtful but possible).

@antonio-rojas
Copy link
Contributor Author

comment:14

FWIW this is the commit that breaks it

https://sourceforge.net/p/maxima/code/ci/801a0bb782fd09b9907a599541e1bff622ea453d

I can't decrypt what it means though, or why it breaks this test in sage but not in maxima itself.

@slel
Copy link
Member

slel commented Jan 14, 2019

comment:15

Regarding integrals of abs(sin(x)) and related, see

To explore anything to do with Maxima, it's important to remember
that Sage starts Maxima by setting some defaults including domain : complex
and loading some packages including abs_integrate, leading to differences
with running Maxima on its own.

See lines 171 to 173 in src/sage/interfaces/maxima_lib.py

init_code = ['besselexpand : true', 'display2d : false',
            'domain : complex', 'keepfloat : true',
            'load(to_poly_solve)', 'load(simplify_sum)',
            'load(abs_integrate)', 'load(diag)']

Bugs in Maxima can be discussed on the maxima-discuss mailing list,
always recalling these specifics of running Maxima in Sage.

@antonio-rojas
Copy link
Contributor Author

comment:16

Ah indeed, after 'load(abs_integrate)' I can reproduce the issue in maxima

(%i2) load(abs_integrate);
(%o2) /usr/share/maxima/5.42.1/share/contrib/integration/abs_integrate.mac
(%i3) integrate(abs(sin(x)),x,0,2*%pi);
(%o3)                                  0

@antonio-rojas
Copy link
Contributor Author

comment:17

Upstream report: https://sourceforge.net/p/maxima/bugs/3519/

@antonio-rojas
Copy link
Contributor Author

Upstream: Reported upstream. No feedback yet.

@slel
Copy link
Member

slel commented Jan 14, 2019

comment:18

For reference, Maxima bugs dealing with abs(sin(x)) or abs(cos(x)):

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 9, 2019

Changed commit from bda2320 to 2530dbf

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 9, 2019

Branch pushed to git repo; I updated commit sha1. New commits:

ff20568Merge branch 'develop' of git://git.sagemath.org/sage into t/26625/update_maxima_to_5_42_1
2530dbfUpdate maxima to 5.42.2

@antonio-rojas

This comment has been minimized.

@antonio-rojas antonio-rojas changed the title Update maxima to 5.42.1 Update maxima to 5.42.2 Feb 9, 2019
@kcrisman
Copy link
Member

comment:21

Replying to @slel:

For reference, Maxima bugs dealing with abs(sin(x)) or abs(cos(x)):

Also for reference, see #12731 and/or the wiki part about abs_integrate problems.

@antonio-rojas
Copy link
Contributor Author

comment:22

Adding #12731 as a dependency, since it seems unlikely this will get any attention upstream.

@antonio-rojas
Copy link
Contributor Author

Dependencies: #12731

@kiwifb
Copy link
Member

kiwifb commented May 23, 2019

comment:23

I am putting this as "need_review" since #12731 is getting attention. I am ready to move this ticket to a positive review once #12731 is merged.

@slel
Copy link
Member

slel commented May 24, 2019

Changed keywords from none to upgrade, maxima

@kiwifb
Copy link
Member

kiwifb commented May 25, 2019

comment:25

#12731 is closed so this can go in.

@kiwifb
Copy link
Member

kiwifb commented May 25, 2019

Reviewer: François Bissey

@vbraun
Copy link
Member

vbraun commented May 27, 2019

Changed branch from u/arojas/update_maxima_to_5_42_1 to 2530dbf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants