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

Precedence issues with mathematica functions #10968

Open
sagetrac-flawrence mannequin opened this issue Mar 20, 2011 · 0 comments
Open

Precedence issues with mathematica functions #10968

sagetrac-flawrence mannequin opened this issue Mar 20, 2011 · 0 comments

Comments

@sagetrac-flawrence
Copy link
Mannequin

sagetrac-flawrence mannequin commented Mar 20, 2011

Pre #9032:

sage: mathematica(pi/2).N(50)
1.5707963267948966192313216916397514420985846996876

Post #9032:

sage: mathematica(pi/2).N(50)
1.5707963267949

The N[] function from mathematica is being overwritten by numerical_approx. There seems to be no other way to call N[] on an existing mathematica object, so this is a problem.

One way to solve this would be to make mathematica functions take precedence over all or most Sage methods. To call a Sage method one would/should/could use .sage().whichever_method()

CC: @sagetrac-drkirkby

Component: interfaces: optional

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

@sagetrac-flawrence sagetrac-flawrence mannequin added this to the sage-5.11 milestone Mar 20, 2011
@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@mkoeppe mkoeppe removed this from the sage-6.4 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