g web browser at http://localhost:8080/ ...
This was quite weird because I didn't have this message the first time, and
nothing was running with a PID 392 according to the list. I tried to kill
it anyway, and now the notebook is opening normally...
MB
--
You received this message becau
://localhost:8080/home/admin/ is opening in my browser but nothing
is happening, the page remains white.
I tried to reinstall the previous version but even with the version in
TimeMachine, the same problem occurs.
Any idea of what's wrong with my notebook?
Best regards,
MB
--
You received
Thanks!
Mladen
On Jan 19, 6:29 pm, kcrisman wrote:
> On Jan 19, 7:49 pm, mb wrote:
>
> > I am curious why the following doesn't work. I guess I understand the
> > message, that P(x=0) is an expression, so it doesn't make sense to ask
> > if it is an integer. W
s_integral()
---
AttributeErrorTraceback (most recent call
last)
/home/mb/sage/ in ()
/usr/local/sage/local/lib/python2.6/site-packages/sage/structure/
element.so in sage.structure.element.Element._
Thanks, with field=RDF it works.
I am running sage 4.6, and p.plot() doesn't work.
On Jan 1, 8:13 am, Volker Braun wrote:
> Polyhedron(ieqs = [[RDF(2/3), RDF(1/3), RDF(-1/3*sqrt(3))]], field=RDF)
>
> And other fields are hard to implement since there is no implementation of
> the double descript
I am also having trouble with RDF:
Polyhedron(ieqs = [[RDF(2/3), RDF(1/3), RDF(-1/3*sqrt(3))]])
produces the same error.
On Jan 1, 7:27 am, mb wrote:
> On Jan 1, 3:51 am, Volker Braun wrote:
>
> > The recommended way of plotting polyhedra is via p.plot(). The
> > render_s
,-1]])
In [2]: p.plot()
---
AttributeErrorTraceback (most recent call
last)
/home/mb/projects/bianchi/sage/ in ()
AttributeError: 'Polyhedron' object has no attribute 'plot'
>
> P
If we define a polyhedron as the intersection of half planes and then
ask for the list of vertices and a plot, there is weird behavior.
p=Polyhedron(ieqs = [[2, 1, -1]])
print p.Vrepresentation()
p.render_solid(aspect_ratio=1).show()
Here there is only one half plane (2+x-y>=0), and sage gives:
Hi,
The following seems like strange behavior to me.
In [1]: V=VectorSpace(GF(2),2)
In [2]: V([1,3])
Out[2]: (1, 1)
In [3]: V([1,-3])
Out[3]: (1, 0)
I would expect the last answer to be (1,1).
Is this a bug?
Mladen
--
To post to this group, send email to sage-support@googlegroups.com
To unsu
OK, thanks.
Mladen
On Oct 16, 4:37 pm, Minh Nguyen wrote:
> Hi Mladen,
>
> On Sat, Oct 17, 2009 at 9:18 AM, mb wrote:
>
> > Hi,
>
> > I think the following is a bug. Most of the time 1/2 is not declared
> > to be 0, but it is in the following code:
>
>
Hi,
I think the following is a bug. Most of the time 1/2 is not declared
to be 0, but it is in the following code:
In [1]: L=[]
In [2]: for a in range
(1,2):
: for b in range
(2,3):
: L.append
([a,b])
:
In [3]:
L
Out[3]: [[1, 2]]
In [4]: for item in
L:
: print ite
Thanks to both of you!
Mladen
On Feb 7, 12:19 pm, Jason Grout wrote:
> Craig Citro wrote:
> > Hi,
>
> > Yep, there are definitely easy ways of doing this. Here's one way:
>
> > sage: var('a b c d')
> > (a, b, c, d)
> > sage: A = matrix(2,[2,1,1,1])
> > sage: B = matrix(2,[a,b,c,d])
> > sage: C
Hi,
Say I want to compute the centralizer of a matrix.
sage: P.=PolynomialRing(QQ)
sage: A=matrix(P,2,2,[2,1,1,1])
sage: B=matrix(P,2,2,[a,b,c,d])
sage: C=A*B-B*A
sage: C
[-b + c -a + b + d]
[ a - c - d b - c]
sage: var('a b c d')
(a, b, c, d)
sage: solve([-b + c==0,-a + b + d==0,a - c
Using Robert's suggestion of repr() got me pretty close. The biggest
remaining issue is that Sage writes a^x whereas C needs pow(a,x). For
simple cases, I was able to fix this with regular expression
substitution as follows:
import re
p = re.compile("([a-zA-Z0-9]+?)\\^([a-zA-Z0-9]+)")
o = open
Robert,
Thanks! That helps.
--Michael
On Aug 28, 1:04 pm, Robert Bradshaw <[EMAIL PROTECTED]>
wrote:
> On Thu, 28 Aug 2008, MB wrote:
>
> > I'm converting over from mathematica to Sage. One thing I need to do
> > is write a large number of expressions t
I'm converting over from mathematica to Sage. One thing I need to do
is write a large number of expressions to an ASCII file as C code, or
something reasonably close. Mathematica has the CForm[] operator for
this, which doesn't quite make C code but is pretty close.
In Sage, I tried writing str
ackage("homology")
---
Traceback (most recent call
last)
/usr/local/sage-3.0.1/ in ()
/home/mb/sage-3.0.1/local/lib/python2.5/site-packages/sage/interfaces/
gap.py in load_package(self, pkg, verbose)
: Error loading Gap package homology
Mladen
Hi,
I am interested in computing homology groups of a simplicial complex
(or more generally of a polysimplicial complex where cells are
products of simplices). There is a gap package "homology" that does
what I want, see http://linalg.org/gap.html
but I am not sure how to install such a package w
Hi,
It seems to me that the following is a bug.
[EMAIL PROTECTED]:~$ sage
--
| SAGE Version 3.0, Release Date: 2008-04-22 |
| Type notebook() for the GUI, and license() for information.|
-
>
> What version and operating system are you running? (I think there might
> have been a change in this code recently.)
Sage 2.10 on 32 bit linux. I can try upgrading.
Mladen
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegro
Hi,
I am confused about the following session.
sage: var('a b c d t')
(a, b, c, d, t)
sage: M=matrix(2,[a,b,c,d])
sage: M
[a b]
[c d]
sage: M.eigenvalues()
[]
sage: M.charpoly(t)
(a - t)*(d - t) - b*c
sage: M.charpoly(t).solve(t)
[t == (-sqrt(d^2 - 2*a*d + 4*b*c + a^2) + d + a)/2, t == (sqrt(d^
Hi,
I am trying to compute eigenvectors and eigenvalues of a matrix and I
don't understand the output.
sage: R=RealField(30)
sage: M=matrix(R,2,[2,1,1,1])
sage: M.eigenspaces()
[
(2.6180340, [
]),
(0.38196601, [
])
]
If "30" is replaced with "100" the second eigenspace gets printed out,
but
Hi,
Is the following a bug?
sage: z=complex(0,1)
sage: z
1j
sage: z*z
(-1+0j)
sage: z^2
(1+1.967934973691981e-310j)
--mb
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
23 matches
Mail list logo