Opened 3 years ago

Last modified 12 months ago

#25004 new defect

tan(pi/48) only in ascii_art

Reported by: gh-matswb Owned by:
Priority: major Milestone: sage-8.2
Component: calculus Keywords: trig functions exact values
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

%display ascii_art
tan(pi/48)

gives the exact value, but

%display typeset
tan(pi/48)

is returned unevaluated.

Change History (4)

comment:1 Changed 3 years ago by gh-matswb

  • Summary changed from tan(pi/48) only in ascii_art(pi/48) only in ascii_art to tan(pi/48) only in ascii_art

comment:2 Changed 3 years ago by rws

I guess SymPy is used for ascii because only SymPy solves that case. As workaround use (tan(pi/48))._sympy_().

comment:4 Changed 12 months ago by chapoton

Works fine now

sage: version()
'SageMath version 9.1.rc5, Release Date: 2020-05-13'
sage: unicode_art(tan(pi/48))
       ________          ________                                    
      ╱ 1   √2          ╱ √2   1                                     
     ╱  ─ - ──    √3⋅  ╱  ── + ─                                     
   ╲╱   2   4        ╲╱   4    2                                     
   ──────────── + ───────────────                                    
        2                2                          1                
- ──────────────────────────────── + ────────────────────────────────
           ________       ________            ________       ________
          ╱ 1   √2       ╱ √2   1            ╱ 1   √2       ╱ √2   1 
    √3⋅  ╱  ─ - ──      ╱  ── + ─      √3⋅  ╱  ─ - ──      ╱  ── + ─ 
       ╲╱   2   4     ╲╱   4    2         ╲╱   2   4     ╲╱   4    2 
  - ─────────────── + ────────────   - ─────────────── + ────────────
           2               2                  2               2      

EDIT: wrong answer, as the ticket is concerned with the LaTeX output, not the unicode one.

Last edited 12 months ago by chapoton (previous) (diff)
Note: See TracTickets for help on using tickets.