On Thu, Aug 15, 2013 at 6:24 AM, Jean Dubois <jeandubois...@gmail.com> wrote: > Hello, > I recently bought a book "adventures in group theory" which uses Sage. On > page 14
If you bought the 2nd edition then half the proceeds go to Sage, so thanks! (The other half go to an environmental group, and they probably thank you too:-) > it tells Sage allows functions to be defined using a 'lamba operator' and the > following example is shown: > pi = lambda x: pari(x).primepi() > > can someone here explain this in "newbie-language" Others can explain it better than I, but I think the basic idea is that it uses pari/gp (which is a separate program installed with Sage) to compute pi(x). See http://pari.math.u-bordeaux.fr/ for more details on pari. > > I understand what pi(x) (number of primes =< x) is but not how it is > accomplished > with the syntax above > > thanks for being patient with a newbie > jean > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-support+unsubscr...@googlegroups.com. > To post to this group, send email to sage-support@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.