Re: [sage-support] finite cartesian product

2010-10-04 Thread Johannes
thnx, excatly what i was looking for.
Am 04.10.2010 00:32, schrieb Philipp Schneider:
  Hi,
   
 (...)
 In my next try I used FiniteEnumeratedSet and cartesian_product, but
 this is not iterable.
 Is there any other way to do this?
 
 there is a sage function called cartesian_product_iterator.

 Greetings,
 Phil

   

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: finite cartesian product

2010-10-04 Thread Jason Grout

On 10/3/10 5:32 PM, Philipp Schneider wrote:

  Hi,

(...)
In my next try I used FiniteEnumeratedSet and cartesian_product, but
this is not iterable.
Is there any other way to do this?

there is a sage function called cartesian_product_iterator.



You can also use the python function for this:

http://docs.python.org/library/itertools.html#itertools.product


Thanks,

Jason

--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] German translation of the tutorial / Übersetzung des Tutorials in Deutsch

2010-10-04 Thread Philipp Schneider
 Dear Sage community,

Michael Mardaus and I are happy to announce that we have finished
translating the complete Sage tutorial to German.

Now we need the help of as many German speaking users as possible to
proofread our translation.
If you happen to belong to this group and have some minutes to speak, we
would be happy if you could send us corrections or improved formulations.

you can find the current version of the translation in html format at:
http://wwwcip.informatik.uni-erlangen.de/~snphschn/sage/doc/output/html/de/tutorial/index.html

or in pdf format at:
http://wwwcip.informatik.uni-erlangen.de/~snphschn/sage/doc/output/pdf/de/tutorial/

You can either send me the corrections per email, or you can post them
to sage trac at:
http://trac.sagemath.org/sage_trac/ticket/9725

Thank you,
Philipp Schneider




Liebe Sage-Community,

Michael Mardaus und ich sind glücklich darüber, dass wir verkünden
können, dass wir das komplette Sage-Tutorial in Deutsch übersetzt haben.

Nun benötigen wir die Hilfe beim Korrekturlesen unserer Übersetzung von
möglichst vielen deutschsprachigen Sage-Nutzern .
Falls Sie sich angesprochen fühlen und etwas Zeit haben, würden wir uns
freuen, wenn Sie uns auf Fehler aufmerksam machen, oder verbesserte
Formulierungen schicken würden.

Sie können die aktuelle Version der Übersetzung hier im html-Format finden:
http://wwwcip.informatik.uni-erlangen.de/~snphschn/sage/doc/output/html/de/tutorial/index.html

oder im pdf-Format unter:
http://wwwcip.informatik.uni-erlangen.de/~snphschn/sage/doc/output/pdf/de/tutorial/

Sie können mir die Verbesserungen entweder per Email schicken, oder Sie
können diese auf Sage-trac unter:
http://trac.sagemath.org/sage_trac/ticket/9725
eingeben.

Vielen Dank,
Philipp Schneider



-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] modulo operator for reals

2010-10-04 Thread jpc
Why does the plot
   plot(k%1,k,0,5)
is not produced but the following works:
  k=var('k')
  plot( k/1, k,0,5).show()
  print 1.9%1

What can be used instead ?

Pedro

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Indentation of multiline output?

2010-10-04 Thread Alasdair
In my .ipythonrc file, I have set

prompt_out '  '

But this only affects the first line of output when I use Sage in a
console:

sage: random_matrix(Integers(7),3,3)
  [6 1 2]
[6 2 2]
[4 5 1]

The same thing happens if I set

prompts_pad_left 1

How can I have every output line indented?

Thanks,
Alasdair

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org