-
-
Notifications
You must be signed in to change notification settings - Fork 479
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
Upgrade giac to 1.9.0-15 #31563
Comments
comment:1
FTR, this is straightforward and requires no changes to sagelib. |
comment:4
I've updated the system version check in #31594 because it should be a trivial review. |
Branch: u/mkoeppe/upgrade_giac_to_1_7_0 |
Attachment: giac-1.7.0.25p0.tar.bz2.gz |
Commit: |
comment:8
I have made a new tarball using New commits:
|
comment:9
These are the current patches: |
comment:10
I just tested the latest giac (1.7.0.33) against sage 9.5.beta2. The only doctests failing are
I'll note that recent giac unconditionally look for usb connecting libraries. It seems to be related to giac being able to go in embedded devices as far as I can tell. No real impact on the maths but the functionality is not clearly or cleanly separated. |
comment:12
1.7.0.39 out. Did anyone notice that it was looking for
It may have been there some time because it is an alternative to a code branch that can never be reached (pragma constant |
comment:13
|
comment:14
curl is used for the read command, if the argument is a string beginning with http. |
comment:15
Replying to @sagetrac-parisse:
That's certainly an interesting option. What about all that EMCC(2) code for emscript all around it that has no way of being enabled. Is it dead code or something in gestation? |
comment:16
Replying to @kiwifb:
This is really bizarre.
|
comment:17
Replying to @kiwifb:
It's not dead, it is enabled by commandline -D options, or by the compiler itself (emcc). |
comment:18
The test failure above seems to be a regression in giac 1.7.0:
Note that sympy_integrator is able to correctly evaluate this integral, but the order is maxima, then giac, then sympy.
|
comment:19
Replying to @tornaria:
Yes, more precisely it's a regression in 1.7.0-29. Since their forum is a gated community, it would be nice if someone with an account could report it. |
comment:20
This is a consequence of the fact that certified definite integration is hard. For this example Xcas session |
comment:21
OTOH, this still works on 1.7.0-39
|
comment:22
Note that the warnings get through into sage
Would it be possible to integrate max(A,B) with a similar warning? |
comment:23
BTW, did you notice that sage is reading giac output with less than 53-bit precision? We are getting 0.873911256505000 instead of 0.873911256504955, not because giac answer is incorrect but because its output is rounded to 0.873911256505 (which is correct rounding but less than 53-bit). Is there a simple way to setup giac with more output precision so that sage gets the right answer correctly rounded? |
comment:24
max is translated internally to piecewise, it does not use the formula with max, and the checks differ. |
comment:25
Since there doesn't seem to be a fix available, I'm patching out the two failing doctests as follows:
I don't know if this is acceptable for including it in sagemath, but I can't downgrade giac and I rather skip this failing doctests. Is there a way to label a doctest as "expected fail" instead of "not tested" ? |
comment:26
Ironically, I think this test was added to showcase the fact that, given a difficult integral, sage would iterate through its available backends until it got an answer it liked. It seems now that giac is evolving towards the status quo, and refusing to give a possibly-incorrect exact answer. We should still test the fallback behavior somehow, but these integrals have given us headaches for decades. I think we should stop promising to integrate them exactly, i.e. change/delete the tests. |
comment:93
Replying to @mkoeppe:
FYI https://xcas.univ-grenoble-alpes.fr/forum/viewtopic.php?f=3&t=2789 --Nasser |
comment:94
I didn't spot that one before because I always build with fltk support. And that part is in a "#else
literally "use fake object". Passing |
comment:95
Yes, I compiled it without fltk by adding |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:97
Thanks both, this builds now |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:103
Still fails on cygwin with same error as shown in comment:55 - https://github.com/mkoeppe/sage/runs/7274399777?check_suite_focus=true |
comment:104
The other platforms looks OK. |
comment:105
Cygwin is low on my own priority list but it feels a bit of a shame. If giac 1.7 builds on cygwin this is clearly a regression, but while we upgrade the package here, there is nothing that prevent the use of 1.7 or specifically require 1.9, so if someone wants to build on cygwin, they can bring their own giac 1.7. |
comment:106
I think it will be easy to fix the Cygwin build failure in a follow up ticket. Best done in one go together with other current failures of the platform. |
comment:107
I am OK with that plan. I am OK being a positive reviewer for this. |
comment:108
Thanks! |
Changed reviewer from https://github.com/mkoeppe/sage/actions/runs/2641761864, https://github.com/mkoeppe/sage/actions/runs/2641761870 to François Bissey |
Changed branch from u/mkoeppe/upgrade_giac_to_1_7_0 to |
Changed commit from |
https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/
Previous update: #30537
Depends on #33226
Depends on #34037
Depends on #31403
Depends on #34088
CC: @orlitzky @kiwifb @antonio-rojas @frederichan-IMJPRG @sagetrac-parisse @sagetrac-tmonteil @dimpase
Component: packages: standard
Author: Matthias Koeppe
Branch:
b4e5c6e
Reviewer: François Bissey
Issue created by migration from https://trac.sagemath.org/ticket/31563
The text was updated successfully, but these errors were encountered: