Hi all,
I have updated giac in sage-on-gentoo and it gave rise to a couple of
problems.
In 1.5.0-63 onwards we have
sage -t --long usr/lib64/python3.6/site-packages/sage/interfaces/giac.py
**********************************************************************
File "usr/lib64/python3.6/site-packages/sage/interfaces/giac.py", line
993, in sage.interfaces.giac.GiacElement._latex_
Failed example:
print(latex(giac('(x^4 - y)/(y^2-3*x)')))
Expected:
"\frac{x^{4}-y}{y^{2}-3\,x}"
Got:
"\frac{(x^{4}-y)}{(y^{2}-3\cdot x)}"
which is just cleaner latex output and easily patched.
But from 1.5.0-65+ we get
sage -t --long usr/lib64/python3.6/site-packages/sage/interfaces/giac.py
**********************************************************************
File "usr/lib64/python3.6/site-packages/sage/interfaces/giac.py", line
45, in sage.interfaces.giac
Failed example:
x,y=giac('x,y');
giac.int(y/(cos(2*x)+cos(x)),x) # random
Exception raised:
Traceback (most recent call last):
File
"/storage/strogdon/gentoo-rap/usr/lib64/python3.6/site-packages/sage/doctest/forker.py",
line 681, in _run
self.compile_and_execute(example, compiler, test.globs)
File
"/storage/strogdon/gentoo-rap/usr/lib64/python3.6/site-packages/sage/doctest/forker.py",
line 1123, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.interfaces.giac[7]>", line 1, in <module>
x,y=giac('x,y');
giac.int(y/(cos(Integer(2)*x)+cos(x)),x) #
random
ValueError: not enough values to unpack (expected 2, got 1)
**********************************************************************
And more precisely
sage: x,y=giac('x,y')
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-9-1f963142d64c> in <module>()
----> 1 x,y=giac('x,y')
ValueError: not enough values to unpack (expected 2, got 1)
Funnily enough
sage: x,y,z=giac('x,y,z')
sage: x=giac('x')
without troubles. It is just when you have two variables.
Any ideas? What kind of bug in giac could that be?
Francois