Skip to content

pretty-print issue in fractions #2531

@zimmermann6

Description

@zimmermann6

Some symbolic fractions are not printed correctly:

sage: print z

                                  arcsin(x)
                                    -------
                                       2

One would expect the '-' bar to start under 'a' on the left.

This was found from an example in calculus.py:

sage: x = var('x')
sage: y = x^2
sage: dy = derivative(y,x)
sage: z = integral(sqrt(1 + dy^2), x, 0, 2)
sage: print z
                     arcsinh(4) + 4 sqrt(17)
                     ---------------------
                               4

Note that the actual output I get with 2.10.3 slightly differs:

sage: print z

                           arcsinh(4) + 4 sqrt(17)
                             ---------------------
                                       4

I wonder why sage -t calculus.py does not point that output difference.

CC: @burcin

Component: graphics

Issue created by migration from https://trac.sagemath.org/ticket/2531

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions