#14090: Thematic tutorials: using the notebook, programming python,
comprehensions
-----------------------------------------------------------------------------+
Reporter: nthiery |
Owner: mvngu
Type: enhancement |
Status: needs_work
Priority: major |
Milestone: sage-5.8
Component: documentation |
Resolution:
Keywords: thematic tutorials |
Work issues:
Report Upstream: N/A |
Reviewers: Samuel Lelièvre, Sébastien Labbé, Karl-Dieter Crisman
Authors: Franco Saliola, Florent Hivert, Nicolas M. Thiéry, et al. |
Merged in:
Dependencies: |
Stopgaps:
-----------------------------------------------------------------------------+
Comment (by nthiery):
Replying to [comment:17 kcrisman]:
> Here come some comments. First, generalities about the front page.
>
> > Or should the PREP tutorial be simply merged in the thematic tutorials
(is there a compelling reason to have separate documents?)
>
> Maybe not any more. At the time the thematic tutorials were pretty
> clearly ''thematic'' tutorials. Not really a lot of overlap between
> abelian sandpiles and an intro to doing calculus in Sage.
Ok.
> In any case, one should keep existing links working.
Definitely!
> Maybe that would be a next step - re-organizing ''all'' information in
the Sage references. Currently there is also
> * Three Lectures about Explicit Methods in Number Theory Using Sage
> * Numerical Sage
> * A Tour of Sage
> * Constructions
>
> Some of these things have been translated, which gives additional
annoyance...
Yup. Do you mind opening a ticket for this?
> {{{
> This is an index, grouped by theme, of Sage demonstrations, quick
reference cards, primers, and thematic tutorials:
> }}}
> I only see primers and thematic tutorials. Is this old language?
No it's new language :-) There are a bunch of demos in the
Sage-Combinat queue. I commented it out for later.
> With respect to the iteration tutorial, on request of nthiery
höchstpersönlich! Mostly very minor English stuff.
> * What is the plural of "syntax"? I would use "syntaxes" as a common
variant.
I changed this to "idioms" :-)
> * An ''extremely'' useful addition is
> {{{
> sage: [i^2 if i%2 == 1 else 2 for i in range(10)]
> [2, 1, 2, 9, 2, 25, 2, 49, 2, 81]
> }}}
Added.
> The syntax has to be perfect. Does this work for ones with also `for
j in range(10)` and so forth?
I am not sure what you mean here.
> What happens if you try to continue the iterator now? I think that
would be useful to warn folks.
Done!
> * Show this with an example and `timeit` or something. Maybe untested.
> {{{
> Using a list would be much slower here:
> }}}
Done.
> * Make sure these are marked ` # not tested`!
> {{{
> sage: for p in Partitions(): print p
> sage: for p in Primes(): print p
> }}}
Better be indeed :-) Done!
> * Finally, I think that something about iterables should mention `zip`
and friends. Or is that in a previous tutorial?
It is!
> Overall I like it, though!
:-)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14090#comment:22>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.