On Fri, 09 May 2008 at 11:25AM -0700, Marshall Hampton wrote:
> Somewhat relevant to this are the (IMHO) very nice substitutions,
> rules, and patterns in mathematica (although the syntax is pretty
> odd). As a very simple example, the command:
>
> In: {x, x*y} /. {{x -> 1, y -> 2}, {x -> 2, y ->
> How about something like the following:
>
> cpoints = [0, 1, 1+I]
> points = [[real(z), imag(z)] for z in cpoints]
> polygon(points).show(figsize=[8,8])
>
> Mark
Thank you, this is what I was trying to do!
--~--~-~--~~~---~--~~
To post to this group, send email
On May 9, 4:16 pm, Rose <[EMAIL PROTECTED]> wrote:
> No I am not sure I need Tuple(). I am trying to draw some polygons on
> the complex plane, so I put the coordinates of the vertex (I am not
> sure it is the good word) in a Turple().
> Do you think there is a better way to do that?
How about so
On May 9, 10:35 pm, "Glenn H Tarbox, PhD" <[EMAIL PROTECTED]> wrote:
Hi Glen,
> I have an asus eee sitting around... I put eeexbuntu on it so its not
> running the original os (btw, I recommend this... but there must be
> downsides)
I wouldn't stick with Xandros either ;)
> I could easily nail
I have an asus eee sitting around... I put eeexbuntu on it so its not
running the original os (btw, I recommend this... but there must be
downsides)
I could easily nail it up to the net so you could ssh into it which
supports using vnc to view the screen though most of what you'd need
would proba
Hi all,
sage: a=matrix(QQ,3,3,range(9))
sage: v=matrix(QQ,3,1,range(3))
sage: (latex(a\v), a)
gives an error.
I think it has to do with the parsing of latex(a\v); it seems to try
doing "(latex(a._backslash_(v), a)" (note the missing parenthesis in the
call to latex.
You see this more detaile
On 9 mai, 15:01, "John Cremona" <[EMAIL PROTECTED]> wrote:
> Are you sure that you need Tuple() at all for what you are doing?
No I am not sure I need Tuple(). I am trying to draw some polygons on
the complex plane, so I put the coordinates of the vertex (I am not
sure it is the good word) in a
> So I'm guessing you're using symbolic numbers instead of complex
> numbers. It's easy to get them wrong:
I was doing that mistake.
Thank you, it is going faster now.
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsu
On May 9, 9:27 pm, "David Joyner" <[EMAIL PROTECTED]> wrote:
hi David,
> It turns out that next year it is very possible that all USNA freshamn will
> have
> an asus eee. The debate seems to be about the amount of ram it should have.
> I can borrow one next week. It has xandros linux 500M ram,
I've built a new version of the sage-vmware-deluxe-3.0.1 virtual machine.
http://www.sagemath.org/SAGEbin/microsoft_windows/sage_deluxe.html
It is running SAGE 3.0.1 on (X)Ubuntu 8.04 LTS patched as of 5/9/08
Enjoy!
Adam
--
"Invincibility is in oneself, vulnerability in the opponent." -- Sun
On Fri, May 9, 2008 at 3:12 PM, John Cremona <[EMAIL PROTECTED]> wrote:
>
> Didier, I am sure you are right but I thought it best to deal with one
> matter at a time! From Rose's posting it looked as if she was just
> trying to count instances in a list, while Tuples is a much more
> complicated
It turns out that next year it is very possible that all USNA freshamn will have
an asus eee. The debate seems to be about the amount of ram it should have.
I can borrow one next week. It has xandros linux 500M ram, 2G "hard
drive", wireless but
no cd or dvd drive. I think I can also borrow a 8G S
Didier, I am sure you are right but I thought it best to deal with one
matter at a time! From Rose's posting it looked as if she was just
trying to count instances in a list, while Tuples is a much more
complicated function.
John
2008/5/9 didier deshommes <[EMAIL PROTECTED]>:
>
> On Fri, May 9,
Marshall Hampton wrote:
> It occurred to me that maybe I should supply a more non-trivial
> example of rules/patterns/subs in mathematica. Here is just one: we
> replace exponents of polynomials with the famous 3x+1 sequence
> (Collatz, whatever) until they stabilize:
>
> In: {x^2, x^3 + x^200,
On Fri, May 9, 2008 at 1:59 PM, Rose <[EMAIL PROTECTED]> wrote:
Hi Rose,
>
> Second, it becomes pretty long went there are complex numbers in my
> Tuples (more than 30 secondes for 7 elements).
This does take time, interestingly when the numbers are symbolic:
{{{
sage: f=range(6)
sage: %time T
Are you sure that you need Tuple() at all for what you are doing? Try
looking at the documentaion for it with Tuples? If all you want to do
is count the number of times an element appears in a list, use the
count() function which every lisy has, like this
sage: u=[1+I,1+I,1+I,2+I,2+I,2+I,2+I]
s
It occurred to me that maybe I should supply a more non-trivial
example of rules/patterns/subs in mathematica. Here is just one: we
replace exponents of polynomials with the famous 3x+1 sequence
(Collatz, whatever) until they stabilize:
In: {x^2, x^3 + x^200, x^4 + z^909} //. {y_^n_ /; Mod[n, 2
Hi,
(I am a Newbie)
I need to count complex number in Tuples and the only way I found out
is to use Tuples(l,1).count() or UnorderedTuples(l,1).count() (I don't
understand the difference), but I have two problems.
First, it counts only once an element that is twice in my Tuples.
ex: sage:
Well, the design is somewhat different to start with: in Sage, you
have to declare variables explicitly (i.e. with var('x,y') or
whatever), but then symbolic variables can automatically act like
functions (as in the usage/bug above). In mathematica, anything
undefined is _assumed_ to be a new sym
On Fri, May 9, 2008 at 10:03 AM, Marshall Hampton <[EMAIL PROTECTED]> wrote:
>
> Ah, ok. I am probably not the right person to weigh in on what
> symbolics should do. I'll be happy if I can do most of what I could
> do in mathematica - since I used it for 16 years, it defines what I
> expect, bu
On May 9, 9:23 am, "Yi Qiang" <[EMAIL PROTECTED]> wrote:
> This actually bothered me for a while too. There is a patch on the
> trac ticket, please test it out on Linux :-)
Works okay for me. (By the way, I am unable to reproduce my problem
from a few days ago, either before applying the patch
Ah, ok. I am probably not the right person to weigh in on what
symbolics should do. I'll be happy if I can do most of what I could
do in mathematica - since I used it for 16 years, it defines what I
expect, but of course it won't always be the right design to follow
for Sage.
-M. Hampton
On Ma
On Fri, May 9, 2008 at 9:28 AM, Marshall Hampton <[EMAIL PROTECTED]> wrote:
>
> I'm not sure I agree that this is a bug. After using the name "var"
> in the loop, the value of var is y. y is a symbolic variable, and
> when evaluated at the string "x,y" it returns "x,y"; this seems like
> desirab
I'm not sure I agree that this is a bug. After using the name "var"
in the loop, the value of var is y. y is a symbolic variable, and
when evaluated at the string "x,y" it returns "x,y"; this seems like
desirable behavior (to have string-valued functions seems OK to me).
Or another way to put i
This actually bothered me for a while too. There is a patch on the
trac ticket, please test it out on Linux :-)
On Thu, May 8, 2008 at 5:16 PM, William Stein <[EMAIL PROTECTED]> wrote:
>
> On Thu, May 8, 2008 at 5:12 PM, William Stein <[EMAIL PROTECTED]> wrote:
>> On Wed, May 7, 2008 at 12:26 PM,
On Fri, May 9, 2008 at 5:02 AM, Babai <[EMAIL PROTECTED]> wrote:
> The RUN 2nd time:
>>>
> x,y=var("x,y")
> f(x,y)=sin(x)+cos(y)
> grads=[diff(f,var) for var in (x,y)]
> plot_vector_field(grads,[-5,5],[-5,5])
>
> Result>>
> Traceback (most recent call last):grads=[diff(f,var) for var in
> (x,y
On May 9, 11:45 am, "Eduardo Ocampo" <[EMAIL PROTECTED]> wrote:
> hi!
Hi Eduardo,
> Sage does not work anymore after upgrading, and i dont have any idea what
> could be the problem...could you please tell me what should I do?
You do not have m4 installed. Did you compile the original Sage fro
On May 9, 8:46 am, Dan Drake <[EMAIL PROTECTED]> wrote:
> On the download page for the source code [1] it would be useful if, next
> to each link, there was a link to an md5sum (or sha1sum, etc) of the
> tarball. I know we've seen some corrupted downloads, and if an md5sum
> link is easy to find
On the download page for the source code [1] it would be useful if, next
to each link, there was a link to an md5sum (or sha1sum, etc) of the
tarball. I know we've seen some corrupted downloads, and if an md5sum
link is easy to find, it might encourage people to use it.
(Similar md5sum files might
On May 9, 9:42 am, "John Cremona" <[EMAIL PROTECTED]> wrote:
Hi,
> That's what it shows for a new file added to the repository, so the
> diff it shows is the diff between the new file and nothing, i.e.
> /dev/null. I think!
That is correct. I still consider this odd, but you can always
downloa
That's what it shows for a new file added to the repository, so the
diff it shows is the diff between the new file and nothing, i.e.
/dev/null. I think!
John
2008/5/9 David Joyner <[EMAIL PROTECTED]>:
>
> Hi:
>
> Does "/dev/null", around 40-50 lines down in
> http://trac.sagemath.org/sage_trac/
31 matches
Mail list logo