Opened 9 years ago

Last modified 5 years ago

#9795 new defect

Make sure new plot syntax works with Sage polynomials

Reported by: kcrisman Owned by: jason, was
Priority: major Milestone: sage-6.4
Component: graphics Keywords:
Cc: jason Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

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.

Change History (5)

comment:1 Changed 9 years ago by kcrisman

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>
Last edited 7 years ago by kcrisman (previous) (diff)

comment:2 Changed 6 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:3 Changed 5 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:4 Changed 5 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:5 Changed 5 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4
Note: See TracTickets for help on using tickets.