Ticket #13429: giaceval_line.patch

File giaceval_line.patch, 1017 bytes (added by frederichan, 10 years ago)
  • sage/interfaces/giac.py

    # HG changeset patch
    # User Han Frederic <han@math.jussieu.fr>
    # Date 1346759575 -7200
    # Node ID 327945b2fc8cc9f955dfe60706f4df8c3911d938
    # Parent  90cdc6a8ad4e4bed83142b4ca0e6c551acd73204
    add an argument in eval line. big matrices conversion to giac was broken after sage 5.2
    
    diff --git a/sage/interfaces/giac.py b/sage/interfaces/giac.py
    a b  
    553553            return float(self('time() - %s'%float(t)))
    554554
    555555
    556     def _eval_line(self, line, allow_use_file=True, wait_for_prompt=True):
     556    def _eval_line(self, line, allow_use_file=True, wait_for_prompt=True, restart_if_needed=False):
    557557        """
    558558        EXAMPLES::
    559559
    560560            sage: giac._eval_line('2+2')  # optional - giac
    561561            '4'
     562
     563            sage: A=matrix([range(280)])  # optional - giac
     564            sage: GA=giac(A)              # optional - giac
    562565        """
    563566        with gc_disabled():
    564567            z = Expect._eval_line(self, line, allow_use_file=allow_use_file,