Skip to content

Commit

Permalink
Trac #30636: failing doctest with optional tag octave
Browse files Browse the repository at this point in the history
{{{
sage -t --optional=sage,octave
src/doc/en/constructions/interface_issues.rst
}}}
gives
{{{
sage -t --random-seed=0 src/doc/en/constructions/interface_issues.rst
**********************************************************************
File "src/doc/en/constructions/interface_issues.rst", line 432, in
doc.en.constructions.interface_issues
Failed example:
    octave("atanh(1.1)")   ## optional - octave
Expected:
    (1.52226,-1.5708)
Got:
     (1.52226,1.5708)
**********************************************************************
}}}

This is using:
{{{
$ octave --version
octave: X11 DISPLAY environment variable not set
octave: disabling GUI features
GNU Octave, version 4.2.2
Copyright (C) 2018 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.

Octave was configured for "x86_64-pc-linux-gnu".

Additional information about Octave is available at
http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.
}}}
indeed:
{{{
octave:1> atanh(1.1)
ans =  1.5223 + 1.5708i
}}}

URL: https://trac.sagemath.org/30636
Reported by: slabbe
Ticket author(s): Frédéric Chapoton
Reviewer(s): Sébastien Labbé
  • Loading branch information
Release Manager committed Oct 25, 2020
2 parents 1f0db5f + 8365222 commit e20c8b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/en/constructions/interface_issues.rst
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,12 @@ in Sage).

Here's an example using Sage's interface (located in
sage/interfaces/octave.py) with ``octave``
(http://www.octave.org/doc/index.html).
(https://www.gnu.org/software/octave/doc/latest).

::

sage: octave("atanh(1.1)") ## optional - octave
(1.52226,-1.5708)
(1.52226,1.5708)

Here's an example using Sage's interface to ``pari``'s special
functions.
Expand Down

0 comments on commit e20c8b5

Please sign in to comment.