[sage-support] Re: URGENT - Problem with installing sage on suse10.1

2008-10-03 Thread mabshoff
On Oct 3, 3:29 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > On Fri, Oct 3, 2008 at 1:25 PM, Ines Abdeljaoued-TEJ <[EMAIL PROTECTED]> > wrote: > > I'll be to the office tomorrow; do you understand french ? I suggested sending the install log *off list* since most people on this list did not

[sage-support] Re: URGENT - Problem with installing sage on suse10.1

2008-10-03 Thread William Stein
On Fri, Oct 3, 2008 at 1:25 PM, Ines Abdeljaoued-TEJ <[EMAIL PROTECTED]> wrote: > I'll be to the office tomorrow; do you understand french ? You get an "internal compiler error" when installing the Cython spkg. You're using "gcc version 4.1.0 (SUSE Linux)" and the error is copied below and is, i

[sage-support] is it possible to show() a variable with "it's name = " in front of it

2008-10-03 Thread Samuel Gaehwiler
hi, I use sage (in notebook mode) for basic calculations on a daily basis. I also like to print out my calculations and hand it in with my exercise. Since the people who correct them here at the ETH university in Zürich are not familiar with sage, I would like to print every result with the varia

[sage-support] how to auto evaluate blocks with %html (sage notebook)

2008-10-03 Thread [EMAIL PROTECTED]
Hi, it would appear that #auto is incompatible with %html. Is this working as intended, or is there another way? If I don't use %html, anything I write doesn't word-wrap (word wrapping is what I want). Elsewhere, William wrote that: " If word wrapped, if you click to the left of the output, it

[sage-support] Re: How to simplify complex ratios, eg 1/(1+i)

2008-10-03 Thread William Stein
>> I'm worried that won't work, since CC is 53-bit precision floats, so >> "by extension SR" means you'll end up with 1.0*I rather than I. > > I just meant in the sense that fixing an embedding into CC fixes the > embedding into SR, QQbar, ComplexField(1000), etc. The embedding will > actually be

[sage-support] Re: is it possible to show() a variable with "it's name = " in front of it

2008-10-03 Thread Jason Grout
Samuel Gaehwiler wrote: > hi, > > I use sage (in notebook mode) for basic calculations on a daily basis. > I also like to print out my calculations and hand it in with my > exercise. > Since the people who correct them here at the ETH university in Zürich > are not familiar with sage, I would lik

[sage-support] Re: How to simplify complex ratios, eg 1/(1+i)

2008-10-03 Thread William Stein
On Fri, Oct 3, 2008 at 12:10 PM, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > > On Oct 3, 2008, at 12:05 PM, William Stein wrote: > >> I'm worried that won't work, since CC is 53-bit precision floats, so "by extension SR" means you'll end up with 1.0*I rather than I. >>> >>> I just meant

[sage-support] Re: How to simplify complex ratios, eg 1/(1+i)

2008-10-03 Thread Robert Bradshaw
On Oct 3, 2008, at 12:05 PM, William Stein wrote: > >>> I'm worried that won't work, since CC is 53-bit precision floats, so >>> "by extension SR" means you'll end up with 1.0*I rather than I. >> >> I just meant in the sense that fixing an embedding into CC fixes the >> embedding into SR, QQbar,

[sage-support] Re: How to simplify complex ratios, eg 1/(1+i)

2008-10-03 Thread Robert Bradshaw
On Oct 3, 2008, at 11:40 AM, William Stein wrote: > On Fri, Oct 3, 2008 at 2:36 AM, Robert Bradshaw > <[EMAIL PROTECTED]> wrote: >> >> On Oct 2, 2008, at 10:43 PM, Ondrej Certik wrote: >> >>> On Thu, Oct 2, 2008 at 6:43 PM, William Stein <[EMAIL PROTECTED]> >>> wrote: On Thu, Oct 2, 200

[sage-support] Re: is it possible to show() a variable with "it's name = " in front of it

2008-10-03 Thread Georg
Hi samuel, may you write yourself a wrapper which similar to this: >>> def ashow(**args): ... for key in args: ... print key,'=',args[key] ... >>> c = 345.45 >>> ashow(c=c) c = 345.45 instead of print key,'=',args[key] one could write return str(key) + '=' + str(args[key]) the f

[sage-support] Re: How to simplify complex ratios, eg 1/(1+i)

2008-10-03 Thread William Stein
On Fri, Oct 3, 2008 at 2:36 AM, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > > On Oct 2, 2008, at 10:43 PM, Ondrej Certik wrote: > >> On Thu, Oct 2, 2008 at 6:43 PM, William Stein <[EMAIL PROTECTED]> >> wrote: >>> >>> On Thu, Oct 2, 2008 at 9:31 AM, jdmuys <[EMAIL PROTECTED]> wrote: Hi,

[sage-support] Re: is it possible to show() a variable with "it's name = " in front of it

2008-10-03 Thread Neal Holtz
Or, if you don't like constantly having to repeat the variable name, something like: sage: def vshow(_v): : print '%s = %s\n' % (_v,latex(globals()[_v])) : sage: var('q') q sage: a = 3*q/2 sage: vshow('a') a = \frac{{3 q}}{2} This is far from an ideal solution, as if you call it from

[sage-support] Re: is it possible to show() a variable with "it's name = " in front of it

2008-10-03 Thread Jason Grout
pong wrote: > > For a quick solution, you can try > > print('a2 ='),a2 > > I hope someone who know SAGE much better can tell you how to print it > in the LaTeX form. print('a2='),latex(a2) or print('a2 = %s'%latex(a2)) -Jason --~--~-~--~~~---~--~~ To post

[sage-support] Re: is it possible to show() a variable with "it's name = " in front of it

2008-10-03 Thread pong
For a quick solution, you can try print('a2 ='),a2 I hope someone who know SAGE much better can tell you how to print it in the LaTeX form. On Oct 3, 7:07 am, Samuel Gaehwiler <[EMAIL PROTECTED]> wrote: > hi, > > I use sage (in notebook mode) for basic calculations on a daily basis. > I also l

[sage-support] Re: How to simplify complex ratios, eg 1/(1+i)

2008-10-03 Thread Jason Grout
Robert Bradshaw wrote: > I've actually been working on a patch for coercion that will allow > number fields to come with specified embeddings, in which case we > will let I be in QQ[sqrt(-1)] (or even perhaps ZZ[sqrt(-1)]), but > with a specified embedding into CC (and by extension SR) so th

[sage-support] Re: URGENT - Problem with installing sage on suse10.1

2008-10-03 Thread mabshoff
On Oct 3, 5:30 am, Ines <[EMAIL PROTECTED]> wrote: > Hi ! > I tried to insatll a last version of sage : sage-3.1.2.tar with no > sucess. How can I send you the insall.log file ? > > Ines. Hi Ines, please send it compressed to me off list per email. Cheers, Michael --~--~-~--~~---

[sage-support] Re: URGENT - Problem with installing sage on suse10.1

2008-10-03 Thread Ines
Hi ! I tried to insatll a last version of sage : sage-3.1.2.tar with no sucess. How can I send you the insall.log file ? Ines. On 30 sep, 16:54, mabshoff <[EMAIL PROTECTED] dortmund.de> wrote: > Ines Abdeljaoued-TEJ wrote: > > Hi ! > > Hi Ines, > > please don't take discussions off list. > > >

[sage-support] Re: How to simplify complex ratios, eg 1/(1+i)

2008-10-03 Thread Robert Bradshaw
On Oct 2, 2008, at 10:43 PM, Ondrej Certik wrote: > On Thu, Oct 2, 2008 at 6:43 PM, William Stein <[EMAIL PROTECTED]> > wrote: >> >> On Thu, Oct 2, 2008 at 9:31 AM, jdmuys <[EMAIL PROTECTED]> wrote: >>> >>> Hi, >>> >>> I am a total newcomer, and here is very simple high-school level >>> questio

[sage-support] Re: How to simplify complex ratios, eg 1/(1+i)

2008-10-03 Thread Ondrej Certik
On Fri, Oct 3, 2008 at 8:58 AM, jdmuys <[EMAIL PROTECTED]> wrote: > > Ok thanks to you both. Your answers show both Sage's flexibility and > its room for improvement. The QQ[sqrt(-1)] idea is especially > baffling, and completely out of reach of the target audience (high > school). > > As a newbie