On Tue, Jul 14, 2009 at 11:09 PM,
pierre.du...@gmail.com wrote:
>
> I'd like to generate symmetric random matrices whose entries may be
> various distributions. Can I use random_matrix? In help
> (random_matrix), I haven't found any documentation on the *args and
> **kwds variables.
Unfortunate
I'd like to generate symmetric random matrices whose entries may be
various distributions. Can I use random_matrix? In help
(random_matrix), I haven't found any documentation on the *args and
**kwds variables.
--~--~-~--~~~---~--~~
To post to this group, send ema
I am trying to use LaTeX to format text on plots.
sage: T1=text("$\\frac{ABC}{12}$", (0,0), fontsize=14)
sage: T2=text("$\\triangle{ABC}$", (2,2), fontsize=16)
sage: show(T1, axes=False) ## this works
sage: show(T2, axes=False) ## this doesn't
I have also tried this in a notebook. Both $\fr
Hi Gustavo!
On 15 Jul., 03:17, Gustavo Rama wrote:
> But how con you get the time of execution in a variable?
Using cputime or walltime: No problem, since they return a number.
Using timeit:
Remember that you could obtain a timing doing
sage: timeit('f=factorial(400).factor()')
625 loops,
But how con you get the time of execution in a variable?
On Jul 2, 10:33 am, William Stein wrote:
> On Thu, Jul 2, 2009 at 1:31 PM, pang wrote:
>
> > Watch also for "cputime" and "walltime", which are very general and
> > easy to use. Sometimes "time" and "timeit" are not convenient to use
> >
> [ x ] No, I can read the above just fine. It is crystal clear.
... but of course unnecessarily verbose. In my opinion a more common
notation in Sage:
sage: x=2*vector(range(10))+vector(10*[3])
sage: list_plot(map(lambda a:[cos(a),sin(a)],x/max(x)))
is superior to Mathematica.
On Tue, Jul 14
> [ x ] No, I can read the above just fine. It is crystal clear.
... but of course unnecessarily verbose. In my opinion a more common
notation in Sage:
sage: x=2*vector(range(10))+vector(10*[3])
sage: list_plot(map(lambda a:[cos(a),sin(a)],x/max(x)))
is superior to Mathematica.
On Tue, Jul 14
Hi Burcin:
When using Sage for my work i makes heavy use of dictionaries to
substitute values for derivatives of symbolic functions. Thanks for
your help on fixing this bug for Sage 4.1.1.
Alex
On Jun 8, 7:12 am, Burcin Erocal wrote:
> Hi Alex,
>
> On Sun, 7 Jun 2009 11:31:26 -0700 (PDT)
>
>
On Jul 14, 3:35 pm, William Stein wrote:
> 2009/7/14 Carlos Córdoba :
>
> > Thanks John, I'd seen Python comprehensions before, but since I was trying
> > to do all in a one-liner, I think I overlooked your elegant and simple
> > solution. One comprehension at a time is quite neat, but several is
2009/7/14 Carlos Córdoba :
> Thanks John, I'd seen Python comprehensions before, but since I was trying
> to do all in a one-liner, I think I overlooked your elegant and simple
> solution. One comprehension at a time is quite neat, but several is just
> unreadable.
That could be a function of fam
Thanks John, I'd seen Python comprehensions before, but since I was trying
to do all in a one-liner, I think I overlooked your elegant and simple
solution. One comprehension at a time is quite neat, but several is just
unreadable.
On Tue, Jul 14, 2009 at 4:28 PM, John H Palmieri wrote:
>
>
>
> On
On Jul 14, 1:52 pm, Carlos Córdoba wrote:
> Sorry for not answering before, I've being a bit busy. I'll try to give a
> concrete example of what I'm trying to do so you can understand me better.
> I have a list of real numbers, for example
>
> [1,2,3]
Python "list comprehensions" might be what
Sorry for not answering before, I've being a bit busy. I'll try to give a
concrete example of what I'm trying to do so you can understand me better.
I have a list of real numbers, for example
[1,2,3]
I want to multiply by 2 to get
[2,4,6]
the to sum it to 3
[5,7,9]
then divide by the max numb
Try reloading the page. Occaisonally things go wrong and there isn't
actually a connection to the server, in which case the notebook looks
OK but it won't let you make new cells. Do the cells that are already
there actually work?
-M. Hampton
On Jul 14, 1:23 pm, Mikie wrote:
> I have several w
I have several worksheets in my file list. Just created new notebook
and I can only add about 7 cells. Why is this? Is there some kind of
limit?
Thanks
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from th
On Tue, Jul 14, 2009 at 3:01 AM, Paul Sargent wrote:
>
>
> On 13 Jul 2009, at 17:13, Robert Bradshaw wrote:
>
>> In general, we try to avoid modifying the preparser as much as
>> possible. Sometimes, we really have to
>>
>> sage: eval("1/2 + 3^2")
>> 1
>>
>> is really not acceptable (IMHO) for a s
I've been evaluating Sage for engineering applications. The one
missing part, which after reading this forum I've realized is
currently being worked on, is unit support. The best solution I've
been able to use so far is Unum. It works well in my application, but
in the notebook I'd like to be a
On Jul 14, 2009, at 9:18 AM, Doug wrote:
> Hi all; I'm brand new to sage and am finding it really fun and
> useful.
Thanks.
> Of course, I don't know anyone else who uses it and thus need
> to rely on the general community when reading documentation and
> scratching my head leave me with open q
On Jul 14, 6:18 pm, Doug wrote:
> Hi all; I'm brand new to sage and am finding it really fun and
> useful.
Great, welcome in the Sage family ;)
> Any help would be much appreciated!
>
That's simply a matter of automatic simplification. Your more complex
term with the sum is just not covered b
Hi all; I'm brand new to sage and am finding it really fun and
useful. Of course, I don't know anyone else who uses it and thus need
to rely on the general community when reading documentation and
scratching my head leave me with open questions. Here's my first:
sage: foo = (x-1)^2/(x+2)^2 + 2*
Hmm. I've also had trouble interpreting what assume() affects, and I'm
glad to hear that I'm not the only one. What Robert says here helps a
lot, but is there anything written anywhere else that goes into a bit
more detail? I'm sure there's more to it than a missing filter on the
output of solv
There is a ticket in progress to fix this. I've started reviewing it,
I'm hopefully it'll go into 4.1.1.
On Jul 14, 2009, at 7:11 AM, Ethan Van Andel wrote:
>
> When I run this code:
>
> %cython
> %time
> import numpy as np
> cimport numpy as np
>
> COMPLEX = np.complex128
> ctypedef np.comple
When I run this code:
%cython
%time
import numpy as np
cimport numpy as np
COMPLEX = np.complex128
ctypedef np.complex128_t COMPLEX_t
it gives me this error:
"...code_sage30_spyx_0.pyx:10:9: 'complex128_t' is not a type
identifier"
As far as I can tell my code should work. At one point I thin
On Tue, Jul 14, 2009 at 6:37 AM, mac8090 wrote:
>
>
> For a given k, is it possible to instantly get an k-th root of unity
> in sage without making extra fields, or by using e^(2*pi*I/k)?
I'm a bit confused by your question. If you mean k-th roots of unity in
the complex field CC then
sage: z =
Hi Minh,
2009/7/14 Minh Nguyen :
>
> Hi Aleksey,
>
> On Tue, Jul 14, 2009 at 7:46 PM, Aleksey
> Gogolev wrote:
>>
>> Hi Minh,
>>
>> Thank you!
>> I entered the command and got the same output as yours, but still no luck :(
>> After I restarted Sage and tried to load library I got the ImportError:
On Jul 14, 11:37 am, mac8090 wrote:
> For a given k, is it possible to instantly get an k-th root of unity
> in sage without making extra fields, or by using e^(2*pi*I/k)?
I'm curious why you are so opposed to creating a number field.
Basically, there are three one-liners you can use:
Cyclotomi
On Tue, Jul 14, 2009 at 7:02 AM, Minh Nguyen wrote:
>
> Hi David,
>
> On Tue, Jul 14, 2009 at 9:00 PM, David Joyner wrote:
>
>
>
>> I'm no expert on R by any means but if I'm understanding this thread,
>> and your (Minh's) comments on #6379 correctly, a new ticket
>> should be opened up separate
Hi David,
On Tue, Jul 14, 2009 at 9:00 PM, David Joyner wrote:
> I'm no expert on R by any means but if I'm understanding this thread,
> and your (Minh's) comments on #6379 correctly, a new ticket
> should be opened up separate from
> http://www.sagetrac.org/sage_trac/ticket/6379.
> If you agr
On Tue, Jul 14, 2009 at 6:20 AM, Minh Nguyen wrote:
>
> Hi Aleksey,
>
...
>
> Not at all; you're not doing anything wrong. This is a known error;
> see ticket #6379 at
>
> http://www.sagetrac.org/sage_trac/ticket/6379
>
> which already has a patch and positive review. But after applying that
> p
For a given k, is it possible to instantly get an k-th root of unity
in sage without making extra fields, or by using e^(2*pi*I/k)?
On a similar note, anybody know why I can't get sage to equate e^
(theta*I) == cos(theta) + I*sin(theta) ?
--~--~-~--~~~---~--~~
To
Hi Aleksey,
On Tue, Jul 14, 2009 at 7:46 PM, Aleksey
Gogolev wrote:
>
> Hi Minh,
>
> Thank you!
> I entered the command and got the same output as yours, but still no luck :(
> After I restarted Sage and tried to load library I got the ImportError:
>
> sage:r.library("cluster")
>
On 13 Jul 2009, at 17:13, Robert Bradshaw wrote:
> In general, we try to avoid modifying the preparser as much as
> possible. Sometimes, we really have to
>
> sage: eval("1/2 + 3^2")
> 1
>
> is really not acceptable (IMHO) for a serious alternative to other
> systems out there
I know what you'r
Hi Minh,
Thank you!
I entered the command and got the same output as yours, but still no luck :(
After I restarted Sage and tried to load library I got the ImportError:
sage:r.library("cluster")
---
ImportError
Hi Aleksey,
On Tue, Jul 14, 2009 at 6:41 PM, Aleksey
Gogolev wrote:
>
> Hello!
>
> I tried to install package "cluster" for R and got this:
>
> --
> | Sage Version 4.0.2, Release Date: 2009-06-18 |
> | Type
Hello!
I tried to install package "cluster" for R and got this:
--
| Sage Version 4.0.2, Release Date: 2009-06-18 |
| Type notebook() for the GUI, and license() for information.|
---
35 matches
Mail list logo