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

Make sure new plot syntax works with Sage polynomials #9795

Open
kcrisman opened this issue Aug 24, 2010 · 1 comment
Open

Make sure new plot syntax works with Sage polynomials #9795

kcrisman opened this issue Aug 24, 2010 · 1 comment

Comments

@kcrisman
Copy link
Member

pts = [(1,2),(2,3),(3,2),(4,3),(5,2),(6,3)] 
R.<x>=QQ[] 
f = R.lagrange_polynomial(pts) 
SR(f) 
2. If one has a non-symbolic polynomial currently, it won't plot with 
the new plotting syntax. 
plot(f,0,5) # works, old-school Sage 
plot(f,(x,0,5)) # doesn't work, new-school Sage 
plot(f,x,0,5) # doesn't work, though sort of makes sense it shouldn't 
since x isn't a symbolic variable now... ? 

Obviously any polynomial f is what is at issue, not just this particular one.

CC: @jasongrout

Component: graphics

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

@kcrisman
Copy link
Member Author

comment:1

This would be good to work too, if we can fix the above.

pts = [(1,2)] 
R.<x>=QQ[] 
f = R.lagrange_polynomial(pts) 
f.plot(0,7) 
<boom because integers have no .plot() method>

@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

5 participants