Andrew & Jason,
Jason Grout writes:
> On 12/2/10 8:24 AM, Andrew Dawes wrote:
>> lambda is a special word in python, it indicates a type of one-line
>> function definition. Using any other word should work.
>>
>> See:
>> http://groups.google.com/group/sage-support/browse_thread/thread/728f27989f
Hello,
I wish to define some variables thus:
sage: x, y, lambda = var('x,y,lambda')
but sage says:
File "", line 1
x, y, lambda = var('x,y,lambda')
^
SyntaxError: invalid syntax
Is this because the last symbol consists of more than one character?
I'm using sage 4.6, c
: 5589.85
clflush size: 64
The last bit of the install log is attached.
Cheers,
Roger Mason
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support-unsubscr
Hello,
pgdoyle <[EMAIL PROTECTED]> writes:
> I told a colleague about sage, wondering if he would see it as a
> viable
> alternative to matlab for numerical work. This was his response:
>
>> I don't know SAGE - it looks great. I'm looking forward to trying it once
>> things settle down.
>> I'v
Hello William,
"William Stein" <[EMAIL PROTECTED]> writes:
>
> Here is a SAGE notebook version of the above session.
>
> poly matrix
> system:sage
>
The new notebook interface is very spiffy and faster than the old
one. Really nice.
Once again, many thanks for your help.
Roger
--~--~--
Hello,
I'm still trying to do some linear algebra with sage.
sage: var('x1,y1,z1, x2,y2,z2, x3,y3,z3')
(x1, y1, z1, x2, y2, z2, x3, y3, z3)
sage: var('p1,p2,p3')
(p1, p2, p3)
sage: var('x,y,z')
(x, y, z)
sage: var('alpha, beta')
(alpha, beta)
sage: p1 = transpose(matrix([[x1,y1,z1]]))
sage: p1
"William Stein" <[EMAIL PROTECTED]> writes:
> On 7/26/07, Roger Mason <[EMAIL PROTECTED]> wrote:
>> > You should do m.substitute(a=1) just like you're doing -- unfortunately,
>> > nobody implemented that yet, and it's doing some dumb
David & William,
"David Joyner" <[EMAIL PROTECTED]> writes:
> I would use the lambda notation:
>
> sage: m = lambda x: matrix([[x[0],x[1]],[x[2],x[3]]])
> sage: m([1,2,3,4])
>
> [1 2]
> [3 4]
> sage: m([1,2,3,a])
>
> [1 2]
> [3 a]
> sage: m([a,b,3,4])
>
> [a b]
> [3 4]
>
>
> There might be bette
Hello,
Suppose I have a symbolic matrix:
sage: m = matrix([[a,b],[d,e]])
and I wish to substitute some or all elements of m with numbers.
The obvious
sage: m.substitute(a=1)
returns
[a b]
[d e]
so the substitution (which works fine on a list) does not work on a
matrix.
How do I do such su
Justin, William and Martin,
"Justin C. Walker" <[EMAIL PROTECTED]> writes:
> Looks like you are calling 'N()' with a list of length 5; it expects
> one of length 5*3, right?
Many thanks Justin, I forgot to cc my reply to the list.
"William Stein" <[EMAIL PROTECTED]> writes:
[snip]
>
> You cou
"David Joyner" <[EMAIL PROTECTED]> writes:
> This old list is now closed. I'm cc'ing sage-support (the new list)
> but to join, please see
> http://modular.math.washington.edu/sage/lists.html
> or just tell me which lists you want to join and I'll add you.
>
> I don't know anything abot PyX and w
11 matches
Mail list logo