Ticket #5191 (closed defect: invalid)

Opened 4 years ago

Last modified 4 years ago

coercion issue of tanh(2) into QQbar

Reported by: mabshoff Owned by: cwitty
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: coercion Keywords:
Cc: zimmerma Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

This is a followup to #5023: Paul Zimmermann reports:

sage: a=tanh(2)
sage: a._algebraic_(QQbar)
...
TypeError: Unable to coerce e (<class 'sage.functions.constants.E'>) to Rational

Carl: If this is invalid just close the ticker as invalid.

Cheers,

Michael

Change History

comment:1 Changed 4 years ago by cwitty

  • Status changed from new to closed
  • Resolution set to invalid
  • Milestone changed from sage-3.4.1 to sage-duplicate/invalid/wontfix

QQbar(sinh(2)) fails with the above error message; I believe that sinh(2) is not algebraic, so the conversion must fail, although I suppose the error message could be nicer.

However, QQbar(sinh(log(2))) correctly returns 3/4, so the code does work. Therefore, I'm marking this invalid.

Note: See TracTickets for help on using tickets.