You can use one of the changes in behaviour that are in sagemath history 
(in the form of doctests that we have to change as we upgrade giac). For 
instance:

---

With giac 1.9.0-998:

sage: libgiac.solve('sin(3*x)>2*sin(x)', libgiac('x'))
Inequation on periodic expression without assumptions on variable, adding 
assumption ((x>=0) and (x<(2*pi)))
list[((x>0) and (x<(pi/6))),((x>(5*pi/6)) and (x<pi)),((x>(7*pi/6)) and 
(x<(11*pi/6)))]

---

With giac 1.9.0-995:

sage: libgiac.solve('sin(3*x)>2*sin(x)', libgiac('x'))
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
...
RuntimeError: Unable to find numeric values solving equation. For 
trigonometric equations this may be solved using assumptions, e.g. 
assume(x>-pi && x<pi) Error: Bad Argument Value

---


For a better long-term solution, maybe sagemath (and arch) could just patch 
giac so it shows the full version? We do that in void linux:

===
$ giac --version
// Using locale /usr/share/locale/
// C
// /usr/share/locale/
// giac
// UTF-8
// Maximum number of parallel threads 8
// (c) 2001, 2021 B. Parisse & others
1.9.0-998
===

See: 
https://github.com/void-linux/void-packages/blob/master/srcpkgs/giac/template#L48

Something like this added to build/pkgs/giac/spkg-src might work (untested):

    sed -e '/m4_define(\[giac_micro_version]/ 
s/\['${VERSION##*.}']/['${VERSION##*.}'-'${VERSIONREV}${PATCHSUFFIX}']/' -i 
configure.ac

The expanded version of that should be something like

    sed -e '/m4_define(\[giac_micro_version]/ s/\[0]/[0-15p0]/' -i 
configure.ac

I'm not doing this; some sage-the-distro user feel free to pick it up.


Best,
Gonzalo

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/sage-devel/587cc383-d67a-48e2-9eb9-47c012075d94n%40googlegroups.com.

Reply via email to