Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tan(pi/48) only in ascii_art #25004

Open
matswb mannequin opened this issue Mar 18, 2018 · 3 comments
Open

tan(pi/48) only in ascii_art #25004

matswb mannequin opened this issue Mar 18, 2018 · 3 comments

Comments

@matswb
Copy link
Mannequin

matswb mannequin commented Mar 18, 2018

%display ascii_art
tan(pi/48)

gives the exact value, but

%display typeset
tan(pi/48)

is returned unevaluated.

Component: calculus

Keywords: trig functions exact values

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

@matswb matswb mannequin added this to the sage-8.2 milestone Mar 18, 2018
@matswb matswb mannequin added c: calculus labels Mar 18, 2018
@matswb matswb mannequin changed the title tan(pi/48) only in ascii_art(pi/48) only in ascii_art tan(pi/48) only in ascii_art Mar 18, 2018
@rwst
Copy link

rwst commented Mar 25, 2018

comment:2

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

@rwst
Copy link

rwst commented Mar 25, 2018

comment:3

This is now pynac/pynac#318

@fchapoton
Copy link
Contributor

comment:4

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.

@mkoeppe mkoeppe removed this from the sage-8.2 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants