Re: [sage-support] Re: NumPy Array with generator

2012-12-31 Thread LFS
Short letter indeed! Full of extremely useful information on so many levels. Thank-you SO much. Linda -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this g

Re: [sage-support] Re: Combinatorics / Graph theory question

2012-12-31 Thread Nathann Cohen
> Thanks a lot :) > with t-design it was easy :) > result: > > http://galvosukykla.lt/rodyk/thumbs.php?p=//stalo_zaidimai/73_cards/png&dim=150 My pleasure :-) Happy new ye !!! Nathann -- You received this message because you are subscribed to the Google Grou

[sage-support] Re: Combinatorics / Graph theory question

2012-12-31 Thread Jurgis Pralgauskis
Hi, Thanks a lot :) with t-design it was easy :) result: http://galvosukykla.lt/rodyk/thumbs.php?p=//stalo_zaidimai/73_cards/png&dim=150 2012 m. gruodis 10 d., pirmadienis 02:28:44 UTC+2, Nathann Cohen rašė: > > Ahahahahah :-) > > Beautiful problem ! Not really a graph problem, but a beautiful pr

Re: [sage-support] Re: NumPy Array with generator

2012-12-31 Thread Harald Schilly
On Mon, Dec 31, 2012 at 7:44 PM, LFS wrote: > Thank you Harald. np, i'm just heading to a party, so, just a short answer: > I need the simplest most intuitive > format possible with the least number of commands. ok, then i suggest you to use python lists, nothing else. and tell them that there

[sage-support] Re: NumPy Array with generator

2012-12-31 Thread LFS
Thank you Harald. Actually, I think I do need the whole list/array with the function evaluated - either as a list or an array. (I am working the TriDiagonal Algorithm.). I am an "in-between" person. I have found that the students make no connection between their engineering classes that often u

Re: [sage-support] Mathematica interface has changed in V9 ?

2012-12-31 Thread David Kirkby
On 31 December 2012 17:09, William Stein wrote: > > > On Mon, Dec 31, 2012 at 8:54 AM, David Kirkby > wrote: >> >> On 28 December 2012 17:55, Ivan Andrus wrote: >> > On Dec 28, 2012, at 4:47 PM, David Kirkby >> > wrote: >> >> >> Mathematica were not tested regularly - I don't know if that has >

Re: [sage-support] Mathematica interface has changed in V9 ?

2012-12-31 Thread William Stein
On Mon, Dec 31, 2012 at 8:54 AM, David Kirkby wrote: > On 28 December 2012 17:55, Ivan Andrus wrote: > > On Dec 28, 2012, at 4:47 PM, David Kirkby > wrote: > > >> Mathematica were not tested regularly - I don't know if that has > >> changed. > > > > Of course, the Mathematica interface cannot be

Re: [sage-support] Mathematica interface has changed in V9 ?

2012-12-31 Thread David Kirkby
On 28 December 2012 17:55, Ivan Andrus wrote: > On Dec 28, 2012, at 4:47 PM, David Kirkby wrote: >> Mathematica were not tested regularly - I don't know if that has >> changed. > > Of course, the Mathematica interface cannot be tested as often as everything > else because not everyone has a lic

[sage-support] Re: NumPy Array with generator

2012-12-31 Thread Harald Schilly
On Monday, December 31, 2012 4:52:37 PM UTC+1, LFS wrote: > > Thanks indeed Juan, it did help immensely! I couldn't get array to work > and your example finally clicked for me. > In the end, I used: w=numpy.array([cos(x0+j*h) for j in range(n+1)], > float) > THANKS. Linda Hi, you line will wor

[sage-support] Re: NumPy Array with generator

2012-12-31 Thread LFS
Thanks indeed Juan, it did help immensely! I couldn't get array to work and your example finally clicked for me. In the end, I used: w=numpy.array([cos(x0+j*h) for j in range(n+1)], float) THANKS. Linda -- You received this message because you are subscribed to the Google Groups "sage-support"

[sage-support] Re: NumPy Array with generator

2012-12-31 Thread Javier López Peña
You can create a numpy array from a list with numpy.array([cos(x) for x in range(x0, xend, h)]) or if you want to avoid using python lists at al costs, you can do numpy.cos(arrange(x0, xend, h)) "arange" is the numpy equivalent to range, creating an array instead of a list, and then you can u

[sage-support] Re: Mathematica interface has changed in V9 ?

2012-12-31 Thread Emmanuel Charpentier
Ticket #13892 created as suggested. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email

[sage-support] Re: Fontsize in single cell output

2012-12-31 Thread P Purkayastha
On 12/31/2012 02:00 AM, david.guichard wrote: Hi-- Just starting to play with the single cell server--very cool. Is it possible to adjust the fontsize in latex output? That is, if I'm saying "show(...)" to get typeset output, can I specify the fontsize? Thanks, David If you right click on the

[sage-support] Re: NumPy Array with generator

2012-12-31 Thread LFS
P.S. Sorry there is an error in the above post. Of course the counter should be integer. This is the best I could do. x0=0.;xend=2.*pi;n=8.;h=(xend-x0)/n; y=numpy.ones(n+1) y=[y[j]*cos(x0+j*h) for j in [0..n]] y If anyone knows of an easier or more intuitive way OR how to this array to print *on