Hi Graham,
On Mon, Dec 6, 2010 at 4:57 AM, Graham Enos wrote:
> I wasn't sure if I should submit a ticket on this or not, since it
> seems to fall under "unexpected behavior" rather than "software bug."
> I've been working through some small graph theory problems and was
> computing minimum spann
On Fri, 10 Dec 2010 at 02:11PM +0900, Dan Drake wrote:
> ...but I don't know how to combine those channels and display the color
> image.
[...]
> What I would really like is for matrix_plot to accept three matrices of
> the same shape and show a color image.
*facepalm* That was stupid -- matrix_pl
I'm working on a singular value decomposition demo for my linear algebra
class, and it's super easy to read in an image and get the red, green,
and blue channels:
sage: import pylab
sage: img = pylab.imread('filename.png')
sage: parent(img)
sage: img.shape
(13, 7, 3)
I can extract the arrays for
I was going to suggest this too, but the RIF behaves differently than
you might naively expect "intervals" of real number to behave. For
example, "union" means convex hull:
sage: a = RIF(0,1)
sage: b = RIF(2,3)
sage: a.union(b).endpoints()
(0.000, 3.00)
Also, it seems from
I think you want the RealIntervalField. For exampe:
sage: a = RIF(0,1)
sage: b = RIF(.5,pi)
sage: a.overlaps(b)
True
see:
http://www.sagemath.org/doc/reference/sage/rings/real_mpfi.html
-M. Hampton
On Dec 9, 8:16 am, Laurent Claessens wrote:
> Hi
>
> I would like to work with sets that are
Hi
I would like to work with sets that are real intervals or combinations
of them : mainly intersection and union.
Example :
[0,1] intersection with [0.5 , pi]
Using the Sage Reference Manual 4.1.1, I was able to do that :
sage:A=Set(RealField())
sage: sqrt(2) in A
True
So it is possible to