[sage-support] Linear equations over Zmod(m).

2012-02-23 Thread Frithjof Schulze
Hi, in Maple I can do something like A := Matrix([[1,2,3],[1,3,0],[1,4,3]]); b := Vector([1,2,3]); x := Linsolve(A,b) mod 6; to solve a system of linear equations modulo 6 but the obvious Sage code only works over integral domains: sage: A = matrix(Zmod(6),

[sage-support] Plotting untouched linear system

2012-02-23 Thread bthomas
Hello, For clarity reasons, in notebook, im trying to print a system before any symbolic manipulation: A=matrix(3,3,[x0,y0,1,x1,y1,1,x2,y2,1]) unk= vector(3,[a,b,c]) rhs=vector(3,[w0,w1,w2]) I would like to print A*unk=rhs such that the output becomes something similar to: [x0,y0,1]*[a]=[w0]

[sage-support] Re: Plotting untouched linear system

2012-02-23 Thread Jason Grout
On 2/23/12 10:30 AM, btho...@nexus.hu wrote: Hello, For clarity reasons, in notebook, im trying to print a system before any symbolic manipulation: A=matrix(3,3,[x0,y0,1,x1,y1,1,x2,y2,1]) unk= vector(3,[a,b,c]) rhs=vector(3,[w0,w1,w2]) I would like to print A*unk=rhs such that the output

Re: [sage-support] Re: Plotting untouched linear system

2012-02-23 Thread bthomas
Yes, exactly! Thank you Jason: Th - Original Message - From: Jason Grout To: sage-support@googlegroups.com Sent: Thu, 23 Feb 2012 10:46:44 -0600 Subject: [sage-support] Re: Plotting untouched linear system On 2/23/12 10:30 AM, btho...@nexus.hu wrote: Hello, For clarity reasons, in

[sage-support] Re: polygon graph is too small (wrong scale)

2012-02-23 Thread Goebbe
@Jason: In Sage 4.8: When adding a polygon to a plot, the aspect ratio of the polygon is used. When adding a plot to a polygon, again, the aspect ratio of the polygon is used. This is unexpected. Would it make sense / would it be possible to keep the default aspect ratio of the first graph? My

Re: [sage-support] Re: polygon graph is too small (wrong scale)

2012-02-23 Thread Dan Drake
On Thu, 23 Feb 2012 at 12:31PM -0800, Goebbe wrote: @Jason: In Sage 4.8: When adding a polygon to a plot, the aspect ratio of the polygon is used. When adding a plot to a polygon, again, the aspect ratio of the polygon is used. This is unexpected. There was some discussion of plotting and

[sage-support] Re: polygon graph is too small (wrong scale)

2012-02-23 Thread Jason Grout
On 2/23/12 8:20 PM, Dan Drake wrote: On Thu, 23 Feb 2012 at 12:31PM -0800, Goebbe wrote: @Jason: In Sage 4.8: When adding a polygon to a plot, the aspect ratio of the polygon is used. When adding a plot to a polygon, again, the aspect ratio of the polygon is used. This is unexpected. There

[sage-support] Question about plot

2012-02-23 Thread juaninf
Dear members I am a two-tuple vector, vet=[(1,2),(3,4),(5,6),..], i want plot this data with a line aproximation, (interpolation this points), exist any parameter in list_plot function for this. Juan -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from

Re: [sage-support] Question about plot

2012-02-23 Thread D. S. McNeil
I am a two-tuple vector, vet=[(1,2),(3,4),(5,6),..], i want plot this data with a line aproximation, (interpolation this points), exist any parameter in list_plot function for this. Maybe line(vet) does what you want? You can look at

Re: [sage-support] Question about plot

2012-02-23 Thread Juan Grados
I need smooth line, (interpolation the points), line(vec) plot line without smoth 2012/2/24 D. S. McNeil dsm...@gmail.com I am a two-tuple vector, vet=[(1,2),(3,4),(5,6),..], i want plot this data with a line aproximation, (interpolation this points), exist any parameter in list_plot

[sage-support] Re: Question about plot

2012-02-23 Thread Jason Grout
On 2/23/12 9:39 PM, Juan Grados wrote: I need smooth line, (interpolation the points), line(vec) plot line without smoth Maybe the spline command would be useful to you? sage: v=[(1,2),(3,4),(6,6),(4,3)] sage: plot(spline(v), (1,6))+points(v) There isn't a smoothing option in

Re: [sage-support] Question about plot

2012-02-23 Thread Dan Drake
On Fri, 24 Feb 2012 at 01:39AM -0200, Juan Grados wrote: I need smooth line, (interpolation the points), line(vec) plot line without smoth If a regression line is good enough, see: http://markmail.org/message/lipt7edldscsaaqb (another one of Jason's messages!) Dan -- --- Dan Drake -