On Sep 26, 1:53 pm, michel paul <[email protected]> wrote:
> A few days ago I had an amazingly successful lesson on sigma using sage
> interval notation and list comprehension.
>
> I gave the kids a bunch of sigma expressions to evaluate. I told them I
> wasn't concerned about the final value so much as about their ability to
> translate these expressions into list comprehensions.
>
> So, for example, they had to come up with things like [n^2 - 5 for n in
> [0..10]]. The structure perfectly corresponds to sigma expressions.
>
Yes, one of the beauties of Python is the list comprehension
corresponding so closely to set builder notation. Did you then do sum
(the list)?
> We weren't in a lab, but I had volunteers come up to enter their code in my
> computer that was being displayed.
>
> It worked like a charm. They really, really got it! One girl was obviously
> ecstatic. She said, "I never understood sigma before! But this makes total
> sense!"
>
> - Michel
>
> --
> "Computer science is the new mathematics."
>
> -- Dr. Christos Papadimitriou
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-edu" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-edu?hl=en
-~----------~----~----~----~------~----~------~--~---