I tried one of the examples (example 3 in DiGraph?)
g = DiGraph({0:{1:'x',2:'z',3:'a'}, 2:{5:'out'}},
implementation='networkx'); show(g)
However, I don't see any label of the edges, why?
Also, I think the DiGraph function is very useful for drawing finite
automata (thanks!) My question is: do
Hi,
In some investigations while using Sage, I noticed
that atan(0,0) returns 0 while using Sage. Maxima
correctly reports an error. The arctan(0,0) should
be undefined. Is there a specific reason for the
behaviour of reporting 0? Is there a flag to set
to make it raise an error?
Thanks,
Tim.
On Sep 23, 2:05 pm, John H Palmieri <[EMAIL PROTECTED]> wrote:
> When passing a python function to plot3d, specifying the variable
> names and including 'adaptive=True' makes plot3d fail, with the
> message
>
> AttributeError: 'function' object has no attribute 'subs'
>
> In more detail:
>
> sage:
On Sep 23, 3:58 pm, Andy <[EMAIL PROTECTED]> wrote:
> I am programming for a project in sage and I want to make use of the
> solve() function. However, I noticed that solve() does not return the
> value of the solved variable but only a statement instead.
>
> For instance, if I wanted to do solve
On Tue, Sep 23, 2008 at 2:15 PM, John H Palmieri <[EMAIL PROTECTED]> wrote:
>
> Is the following a bug? I don't really know what 'adaptive=True' means
> -- the documentation isn't very helpful -- so maybe it's not supposed
> to work for functions like this...
>
> def g(x,y):
>if y <= 0 or y >=
Is the following a bug? I don't really know what 'adaptive=True' means
-- the documentation isn't very helpful -- so maybe it's not supposed
to work for functions like this...
def g(x,y):
if y <= 0 or y >= x**2:
return 0
else:
return 1
Then
plot3d(g, (-3, 3), (-3, 3),
When passing a python function to plot3d, specifying the variable
names and including 'adaptive=True' makes plot3d fail, with the
message
AttributeError: 'function' object has no attribute 'subs'
In more detail:
sage: def f(x,y): return sin(x+y)
Then the following work and produce the same gra
John Cremona wrote:
> 2008/9/23 John Cremona <[EMAIL PROTECTED]>:
>> 2008/9/23 pong <[EMAIL PROTECTED]>:
>>>
>>> I tried
>>>
>>> sage: A=matrix([[1,1],[2,3]])
>>> sage: A.eigenvalues()
>>> [0.2679491924311228?, 3.732050807568878?]
>>>
>>> My question is why the last digit before ? in 0.26794919243
John Cremona wrote:
> 2008/9/23 pong <[EMAIL PROTECTED]>:
>>
>> I tried
>>
>> sage: A=matrix([[1,1],[2,3]])
>> sage: A.eigenvalues()
>> [0.2679491924311228?, 3.732050807568878?]
>>
>> My question is why the last digit before ? in 0.2679491924311228? is
>> '8'? Shouldn't it be "7" according to
>>
>
Hi Andy,
On Tue, Sep 23, 2008 at 12:58 PM, Andy <[EMAIL PROTECTED]> wrote:
>
> I am programming for a project in sage and I want to make use of the
> solve() function. However, I noticed that solve() does not return the
> value of the solved variable but only a statement instead.
>
> For instanc
I am programming for a project in sage and I want to make use of the
solve() function. However, I noticed that solve() does not return the
value of the solved variable but only a statement instead.
For instance, if I wanted to do solve([x^2 - 1], x), I would likely
get a result containing the st
On Sep 23, 7:37 am, abhi <[EMAIL PROTECTED]> wrote:
Hi,
> I am trying to install sage-3.1.2 on my Fedora 9 with gcc-4.3. I am
> having problem with matplotlib-0.98.3.p1its giving error given
> below
>
> BUILDING MATPLOTLIB
> matplotlib: 0.98.3
> python: 2.5.2 (r
2008/9/23 John Cremona <[EMAIL PROTECTED]>:
> 2008/9/23 pong <[EMAIL PROTECTED]>:
>>
>>
>> I tried
>>
>> sage: A=matrix([[1,1],[2,3]])
>> sage: A.eigenvalues()
>> [0.2679491924311228?, 3.732050807568878?]
>>
>> My question is why the last digit before ? in 0.2679491924311228? is
>> '8'? Shouldn't
Hi,
> > > > ^^^ This is some sort of permission error. Are you running SELinux or
> > > > something like that?
>
It turns out that although SELinux is installed it is actually
disabled because it interferes to much and since I live behind a
firewall it deemed unneeded. So I am back to square on
2008/9/23 pong <[EMAIL PROTECTED]>:
>
>
> I tried
>
> sage: A=matrix([[1,1],[2,3]])
> sage: A.eigenvalues()
> [0.2679491924311228?, 3.732050807568878?]
>
> My question is why the last digit before ? in 0.2679491924311228? is
> '8'? Shouldn't it be "7" according to
>
> sage: ch=characteristic_polyn
On Tue, Sep 23, 2008 at 9:34 AM, pong <[EMAIL PROTECTED]> wrote:
>
>
> I tried
>
> sage: A=matrix([[1,1],[2,3]])
> sage: A.eigenvalues()
> [0.2679491924311228?, 3.732050807568878?]
>
> My question is why the last digit before ? in 0.2679491924311228? is
> '8'? Shouldn't it be "7" according to
? m
I tried
sage: A=matrix([[1,1],[2,3]])
sage: A.eigenvalues()
[0.2679491924311228?, 3.732050807568878?]
My question is why the last digit before ? in 0.2679491924311228? is
'8'? Shouldn't it be "7" according to
sage: ch=characteristic_polynomial(A)
sage: solve(ch(x)==0,x)
[x == 2 - sqrt(3), x ==
2008/9/23 Simon King <[EMAIL PROTECTED]>:
>
> On Sep 23, 3:31 pm, "John Cremona" <[EMAIL PROTECTED]> wrote:
>> The rest of your query is hard to interpret. To "create a list of
>> equal elements", say a list of 5 copies of the matrix m, do this:
>> sage: [m]*5
>
> But this would not create a list
On Sep 23, 3:31 pm, "John Cremona" <[EMAIL PROTECTED]> wrote:
> The rest of your query is hard to interpret. To "create a list of
> equal elements", say a list of 5 copies of the matrix m, do this:
> sage: [m]*5
But this would not create a list of 5 *copies* of m. The five entries
of that list a
I am trying to install sage-3.1.2 on my Fedora 9 with gcc-4.3. I am
having problem with matplotlib-0.98.3.p1its giving error given
below
BUILDING MATPLOTLIB
matplotlib: 0.98.3
python: 2.5.2 (r252:60911, Sep 23 2008, 17:09:57)
[GCC
4.3.0 2008
> John Cremona
>
> 2008/9/23 aniura <[EMAIL PROTECTED]>:
>
>
>
> > hi,
>
> > I wanted to know if there is a way to work in Sage with arrays of
> > matrices or something similar (something like a[i,j,k], so that
> > a[i,:,:], a[:,j,:] and a[:,:,k] are all matrices. I tried to use a
> > list of matr
If you type m. you will see lots of things you can do with a
matrix m. For example m.subdivide? allows you to pick out a
submatrix.
The rest of your query is hard to interpret. To "create a list of
equal elements", say a list of 5 copies of the matrix m, do this:
sage: [m]*5
[[1.00
On Sep 23, 2008, at 8:45 AM, aniura wrote:
>
> hi,
>
> I wanted to know if there is a way to work in Sage with arrays of
> matrices or something similar (something like a[i,j,k], so that
> a[i,:,:], a[:,j,:] and a[:,:,k] are all matrices. I tried to use a
> list of matrices but apparently sage i
hi,
I wanted to know if there is a way to work in Sage with arrays of
matrices or something similar (something like a[i,j,k], so that
a[i,:,:], a[:,j,:] and a[:,:,k] are all matrices. I tried to use a
list of matrices but apparently sage interprets it as a list of
vectors:
sage: m=matrix(RR,2,ra
Surprinsingly, SAGE 3.1.2 is more ignorant than 3.1.1:
> ./sage
---
| SAGE Version 3.1.2 ...
| Type notebook() ...
--
sage: var('a b t x')
(a, b, t, x)
sage: assume(exp(b*pi)<1)
sage: expr(x)=integral(exp(-2*I*pi*(a+I*b)*t)
Actually
sage: G.base_ring().order() is what I wanted, thank you so much.
On Sep 23, 1:42 am, Robert Bradshaw <[EMAIL PROTECTED]>
wrote:
> On Sep 22, 2008, at 11:37 PM, Mike Hansen wrote:
>
>
>
>
>
> > Hello,
> > On Mon, Sep 22, 2008 at 11:34 PM, cesarnda <[EMAIL PROTECTED]> wrote:
>
> >> If I d
Thanks, I'll make sure I get 3.1.2 installed today!
On Sep 23, 10:26 am, "Mike Hansen" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> On Tue, Sep 23, 2008 at 1:21 AM, Maike <[EMAIL PROTECTED]> wrote:
>
> > Okay that's right. But still, #auto doesn't work together with %hide
> > or %latex, no matter whi
Hello,
On Tue, Sep 23, 2008 at 1:21 AM, Maike <[EMAIL PROTECTED]> wrote:
>
> Okay that's right. But still, #auto doesn't work together with %hide
> or %latex, no matter which order I put these commands in, and I need
> this feature for my %latex cells, because they're the ones not being
> execute
Okay that's right. But still, #auto doesn't work together with %hide
or %latex, no matter which order I put these commands in, and I need
this feature for my %latex cells, because they're the ones not being
executed when I start up a worksheet.
Maike
On Sep 22, 6:31 pm, "William Stein" <[EMAIL P
29 matches
Mail list logo