Hi, To learn SAGE takes a while, and good exercises are scarce. It was mentioned before, but the site http://projecteuler.net/ is interesting. The idea is to solve relatively simple mathematical problems and the level is going up slowly. For instance group operations, read/write to a file, speed are topics you will encounter.
Until now I solved 38 problems. Two questions arise: 1. Suppose you have two functions: SLOW and FAST which return the boolean True or False. Is there a difference in speed between: a. If SLOW and FAST: …. b. If FAST and SLOW: …. The second option seems faster because only SLOW is executed if FAST==True. Or does the compiler checks this? 2. Is there a more elegant way for: for k1 in range(-2,3): for k2 in range(-2,3): for k3 in range(-2,3): for k4 in range(-2,3): for k5 in range(-2,3): for k6 in range(-2,3): for k7 in range(-2,3): ? Roland --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---