#12375: submit a giac  spkg
-------------------------------------+-------------------------------------
       Reporter:  frederichan        |        Owner:  tbd
           Type:  enhancement        |       Status:  needs_work
       Priority:  minor              |    Milestone:  sage-6.3
      Component:  packages:          |   Resolution:
  optional                           |    Merged in:
       Keywords:  giac               |    Reviewers:
        Authors:  Han Frederic       |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:  public/giac_spkg   |  9562050fcc8774cbfeeaa88479cd8eb5733a45a7
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by dimpase):

 {{{
 sage -t --optional=sage,giac src/sage/interfaces/giac.py
 }}}
 produces several errors:

 {{{
 **********************************************************************
 File "src/sage/interfaces/giac.py", line 38, in sage.interfaces.giac
 Failed example:
     giac.fsolve('x^2=cos(x)+4', 'x','0..5')         # optional - giac
 Expected:
     1.9140206190...
 Got:
     [1.91402061903]
 **********************************************************************
 File "src/sage/interfaces/giac.py", line 229, in sage.interfaces.giac.Giac
 Failed example:
     giac('assume(y>0)'); giac('y^2=3').solve('y')  #optional - giac
 Expected:
     y
     [sqrt(3)]
 Got:
     y
     list[sqrt(3)]
 **********************************************************************
 File "src/sage/interfaces/giac.py", line 257, in sage.interfaces.giac.Giac
 Failed example:
     a=sqrt(2);giac('Digits:=30;a:=5');a,giac('a'),giac(a),giac(a).evalf()
 # optional - giac
 Expected:
     [...]
     (sqrt(2), 5, sqrt(2), 1.414213562373095048801688724209)
 Got:
     30
     (sqrt(2), 5, sqrt(2), 1.41421356237309504880168872421)
 **********************************************************************
 File "src/sage/interfaces/giac.py", line 309, in
 sage.interfaces.giac.Giac._keyboard_interrupt
 Failed example:
     try:                                   # optional - giac
         giac._keyboard_interrupt()
     except KeyboardInterrupt:
         pass
 Exception raised:
     Traceback (most recent call last):
       File "/home/dima/sage/sage-6.3.beta7/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 480, in _run
         self.execute(example, compiled, test.globs)
       File "/home/dima/sage/sage-6.3.beta7/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 839, in execute
         exec compiled in globs
       File "<doctest sage.interfaces.giac.Giac._keyboard_interrupt[1]>",
 line 2, in <module>
         giac._keyboard_interrupt()
       File "/home/dima/sage/sage-6.3.beta7/local/lib/python2.7/site-
 packages/sage/interfaces/giac.py", line 322, in _keyboard_interrupt
         raise RuntimeError("Ctrl-c pressed while running %s"%self)
     RuntimeError: Ctrl-c pressed while running Giac
 **********************************************************************
 File "src/sage/interfaces/giac.py", line 986, in
 sage.interfaces.giac.GiacElement._latex_
 Failed example:
     print latex(giac('(x^4 - y)/(y^2-3*x)'))      # optional - giac
 Expected:
     "\frac{(x^{4}-y)}{(y^{2}-3 x)}"
 Got:
     "\frac{(x^{4}-y)}{(y^{2}-3\cdot x)}"
 **********************************************************************
 File "src/sage/interfaces/giac.py", line 1042, in
 sage.interfaces.giac.GiacElement._sage_
 Failed example:
     m.trigexpand().sage()                              # optional - giac
 Expected:
     2*(cos(1/x) - 1)^2*sin(sqrt(-x^2 + 1))*cos(sqrt(-x^2 + 1))
 Got:
     2*cos(sqrt(-x^2 + 1))*cos(1/x)^2*sin(sqrt(-x^2 + 1)) - 4*cos(sqrt(-x^2
 + 1))*cos(1/x)*sin(sqrt(-x^2 + 1)) + 2*cos(sqrt(-x^2 + 1))*sin(sqrt(-x^2 +
 1))
 **********************************************************************
 File "src/sage/interfaces/giac.py", line 1084, in
 sage.interfaces.giac.GiacElement.integral
 Failed example:
     f.evalf(100)                                              # optional -
 giac
 Expected:
 
1.4626517459071819025155758073473096674669301007326185820691973210905694258465619632003390265815626744
 Got:
     1.4626517459072
 **********************************************************************
 6 items had failures:
    1 of  22 in sage.interfaces.giac
    2 of  12 in sage.interfaces.giac.Giac
    1 of   4 in sage.interfaces.giac.Giac._keyboard_interrupt
    1 of   2 in sage.interfaces.giac.GiacElement._latex_
    1 of   5 in sage.interfaces.giac.GiacElement._sage_
    1 of   6 in sage.interfaces.giac.GiacElement.integral
     [159 tests, 7 failures, 3.36 s]
 ----------------------------------------------------------------------
 sage -t src/sage/interfaces/giac.py  # 7 doctests failed
 }}}
 they should be fixed there.

--
Ticket URL: <http://trac.sagemath.org/ticket/12375#comment:44>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to