On Sun, Feb 6, 2011 at 5:48 PM, A. Jorge Garcia calcp...@aol.com wrote:
NEW: Blogs, Videos and Donorschoose!
Please enjoy my blogs on Midterm Week (installing SAGE and Ubuntu) and
Course Selection Week (Recruiting for next year)!
http://shadowfaxrant.blogspot.com
FLOSS = Free Linux Open
Mosaics using Python generators...
by K. Urner
4dsolutions.net
based on a thread on mathfuture:
http://groups.google.com/group/mathfuture/msg/9d098696c2ea7426?hl=en
Just as the Fibonacci sequence generator might be seeded by any
two integers to start off, so might Pascal's Triangle be seeded
Good to hear from you Laura, long time.
List of features is impressive:
http://code.google.com/p/ninja-ide/wiki/ReleaseNotes
I see I need to get QT.
Kirby
On Sun, Jan 2, 2011 at 11:03 AM, Laura Creighton l...@openend.se wrote:
In a message of Sun, 02 Jan 2011 17:48:52 +0100, Fernando
Greetings Jorge.
Was just checking your blogs.
This find is fantastic. One of your students?
http://www.youtube.com/watch?v=vzuvAvUvAtQ
I'll pass this on the math-teach and mathfuture,
to of my frequent haunts / hangouts.
Kirby
On Sat, Jan 1, 2011 at 7:21 AM, A. Jorge Garcia
Fantastic. Maybe he'll do something around Python someday.
His sister did a wonderful job with the vocals.
Speaking of Python, I noticed how Vi got some Python references in,
not just in drawing the snakes, but in showing a tiny fragment of the
language. open( ).
On Sat, Jan 1, 2011 at 5:22 PM, A. Jorge Garcia calcp...@aol.com wrote:
Vi Hart is amazing. I've seen that YouTube before. You sent that link to
edu-sig some weeks ago, no?
I recently switched from using SAGE online in class to using python scripts
on a Linux server.
I wonder if I could do
On Sat, Jan 1, 2011 at 6:12 PM, A. Jorge Garcia calcp...@aol.com wrote:
snip
You say VPython works well with IDLE? I was hoping to add VPython, GASP or
turtle graphics to my scripts.
Yes, the VPython team built their curriculum around IDLE. Part of what Arthur
used to gripe about is how
No, the question doesn't specify *how many* consecutive primes.
Python scripts to find the answer might be
Constraining it more, you could specify it's 11 consecutive primes
that we're looking for.
Kirby
Teacher's note:
Some students may not write a sieve or other
prime-finding algorithm
Code Blit:
The string module has translate and maketrans, through multiple versions.
In per 3.x,
an optional argument listed letters to delete.
The first argument was a kind of mapping, of 256 symbols to itself, except
with some
letters changed, what we would call a permutation in group theory
Suggestions for Features (SFFs -- not as prestigious or important as PEPs
but sometimes the genetic precursor of a PEP).
Save Session in IDLE or other PyShell:
Hmmm, that didn't format so well for the edu-sig archive, sorry 'bout that.
For a host of reasons, having a source code version at
Here's a thread FYI.
http://groups.google.com/group/mathfuture/browse_thread/thread/e1afd5907813e789?hl=en
http://groups.google.com/group/mathfuture/browse_thread/thread/e1afd5907813e789?hl=enIt's
being used with Geogebra, as a kind of plug-in, looks like. No
I haven't tested it myself (yet).
On Mon, Dec 20, 2010 at 6:09 PM, A. Jorge Garcia calcp...@aol.com wrote:
As I recall, mathpiper branched off from SAGE 2 or 3 years ago. Both
projects are based on python, no?
Regards,
A. Jorge Garcia
Applied Math and CompSci
http://shadowfaxrant.blogspot.com
Wow, a link just posted to math-thinking-l:
http://www.youtube.com/watch?v=heKK95DAKms
How is it Python-relevant? Watch it and see.
In other news: a free open source CAS you might
want to share about.
http://www.mathpiper.org/
(yes, Java not Python -- nice to know what's
out there --
On Sun, Dec 12, 2010 at 11:24 AM, Vern Ceder vce...@gmail.com wrote:
Thanks for both versions, Kirby! I'll take the applause wherever/however I
can get it. ;)
That's cool. You've been a good Giles, a role I can also relate too.
I'm not into COM/Windows much, but the basic example is a
Now if I could just turn that into a COM object (seriously, I'm trying to
figure
out how to call movingballs2.py, a Vpython script, from Visual FoxPro).
OK, I turned it into a COM object, pretty mickey mouse, yet instructive (at
least to me):
VFP = Visual FoxPro and in the middle you'll
On Mon, Dec 6, 2010 at 5:44 AM, Vern Ceder vce...@gmail.com wrote:
Hi,
In a surprise move, our local paper actually accepted one of our invitations
to come see what we do in Comp Sci at the secondary level, namely our Python
elective, which is mostly for first time programmers. The resulting
Now that IronPython is out of the MSFT stable, at github, with an
Apache 2 license,
I'm wondering if any CS classrooms are planning on using it.
There's no chance of the plug getting pulled at this point, and Miguel
de Icaza,
one of new new project leads, has a strong reputation for
Some of you may recall how a few months
ago I was angsting about the little feud that
seems to go on twixt computer language
families, a flavor of religious war, or maybe
more hillbilly in some dimensions.[0]
I'm speaking in particular of the functional
vs. imperative rift. Python gets along
Greetings all --
Two weeks have passed since my last tutoring
gig. This 12 year old is ahead of the pack in
terms of learning object oriented programming.
He's studied Java already and today wanted to
learn more about public vs. private variables.
The last paragraph in this blog post about has
I visit this blog from time to time, often because of a link from
math-teach (as was the case time, where Benezet is again being
discussed).
Kirby
From the comments section:
I experimented with doing another one-on-one tutoring in Python,
of a 12 year old boy, right here at the Blue House (what we call
it). The mom came along too (she knows me already).
Noah is clearly a fast learner. At 12, he's acing 10th grade
algebra. He told me he's already studied Java some
Here in my district, both AP and IB tracks are offered. The latter
definitely has more prestige, as in snob appeal, and is frankly
a more robust curriculum. They're reading Howard Zinn for history
already, the Euros require it.
Then we have other step ladders into promising trajectories,
such
GOSCON
I just got Steve Holden (Holden Web, PSF Chairman) to the airport (PDX).
Steve was here for GOSCON (government + open source) which is
organized by Open Source Labs (OSL), Deb Bryant in particular.
Themes around open government (there's an O'Reilly book by that title)
include: open
Hi Zak --
Glad you've joined us.
I used to be a full time high school math teacher in the 1980s (Jersey
City), then worked at McGraw-Hill.
We all though Logo and BASIC might be getting a mind-slice in
pre-college math, but Texas Instruments won with math wars.
These days, I sometimes get to
non-axial: 10 FF + 2 is the classic CCP number
sequence (OEIS A005901).
Here we bring out the +2 associated with polar
vertexes by means of function composition, applied
using decorator syntax (@)
[12, 42, 92, 162, 252, 362, 492, 642, 812, 1002]
Note how a double decorator makes sense
as well
)
On Sat, Oct 9, 2010 at 7:50 PM, Litvin lit...@skylit.com wrote:
Thanks to both!
Gary Litvin
At 10:08 PM 10/9/2010, kirby urner wrote:
That's cool.
I was hoping my bold assertion of being almost alone on the front
lines would inspire protests from my comrades.
Kirby
On Sat, Oct 9, 2010 at 6
concepts,
including Python (as one of many machine executable math
languages, as Leibniz envisioned), would be a feature of Python.tv
(which Holden Web is keeping safe for when the time comes).
Kirby
Date: Oct 8, 2010 4:27 PM
Author: kirby urner
Subject: Re: Mathematician
/calcpage2009
Sent from my iPod
On Oct 9, 2010, at 8:33 PM, kirby urner kirby.ur...@gmail.com wrote:
Greetings edu-siggers --
The appended thread is from the Math Forum and my role is somewhat
tangential i.e. I'm always the only one present quoting any Python.
Complete thread in case anyone wants more
On Tue, Sep 28, 2010 at 4:39 PM, kirby urner kirby.ur...@gmail.com wrote:
Quite a bit of Python in this essay (link below), relating to math teaching.
snip
http://www.mathforum.org/kb/message.jspa?messageID=7223356tstart=0
Continuing along in the same thread, linking directly
Quite a bit of Python in this essay (link below), relating to math teaching.
This is a philosophy of education I used to post about here in fire hose
quantities, in dialog with Arthur and the OLPC folks, among others.
No reason to top-off an already-full tank, right?
But maybe some are
The opening plenary was interesting. We had some
university representation, including a guy working on
the electronic medical records problem. I wish I'd
gotten his name. Bruce or Brian. He worked with
Steve Holden on the data visualization challenge,
one of the conference puzzles (rewards
You're not talking about MIT Scratch are you?
It fits your description to some extent.
http://scratch.mit.edu/
Kirby
On Fri, Sep 3, 2010 at 11:58 AM, roberto robert...@gmail.com wrote:
hello, this is a somehow strange request:
a long time ago, a python developer wrote me saying he wrote a
On Wed, Sep 1, 2010 at 11:28 AM, Gregor Lingl gregor.li...@aon.at wrote:
snip
http://www.thewildernessdowntown.com/
This is really a great demo
...
Given my Geometry + Geography paradigm, I see trucking mixing with
Google Street View as a way to learn more about a given topography
We
Hey good news about numpy now supporting Python 3. Some of you will
have seen that announcement.
I'm getting ready for DjangoCon here in Portland, am likely to be
'snake handler' again this year, carry the PSF totem around, a token
of friendship when she meets up with Djangopony.
I've been
From my Martian Math curriculum:
http://www.4dsolutions.net/ocn/python/movingballs.py
http://www.4dsolutions.net/ocn/python/movingballs2.py
http://www.4dsolutions.net/ocn/python/movingarrows.py
This one is especially likely to crash your VPython, if
your video card isn't running the latest
I recently completed the 2nd day of this summer camp blitz
for TAG (talented and gifted) students, a category invented
by the district, and I'm not sure how it applies, i.e. this private
NGO has no obligation to check a district database for a
tag flag or anything, praise Allah.
Anyway, all the
On Mon, Jul 19, 2010 at 3:30 PM, kirby urner kirby.ur...@gmail.com wrote:
I'm becoming more aware of the fact that one
reason universities need to charge those
tuitions is to pay licensing fees to private
vendors who provide them with such basic
services as the ability to store and schedule
/cistheta2007
HTH,
A. Jorge Garcia
Applied Math CS
Baldwin SHS Nassau CC
http://shadowfaxrant.blogspot.com
http://www.youtube.com/calcpage2009
Sent from my iPod
On Jul 19, 2010, at 6:15 PM, kirby urner kirby.ur...@gmail.com wrote:
On Fri, Jul 16, 2010 at 1:41 PM, kirby urner kirby.ur
On Mon, Jul 19, 2010 at 10:31 PM, Jarrod Millman mill...@berkeley.edu wrote:
Hello,
There are several open source, community developed projects
widely-used in higher ed. For example, moodle is a widely-used course
management system:
http://moodle.com/
Sakai is another course management
Ah yes, MUMPS. I have some history around that one. It haunts me.
Poor Haiti.
Kirby
On Tue, Jul 20, 2010 at 7:54 PM, Edward Cherlin echer...@gmail.com wrote:
On Tue, Jul 20, 2010 at 04:34, kirby urner kirby.ur...@gmail.com wrote:
I like to see universities taking the lead in some way
On Fri, Jul 16, 2010 at 1:41 PM, kirby urner kirby.ur...@gmail.com wrote:
I'll return to post a link to my followup post.
So here are my two write-ups of the just completed
Programming in Python (SA:10648):
http://worldgame.blogspot.com/2010/07/teaching-again.html
http
I'm becoming more aware of the fact that one
reason universities need to charge those
tuitions is to pay licensing fees to private
vendors who provide them with such basic
services as the ability to store and schedule
classes, record student enrollment and grades,
record instructors etc. The
it comes to admin software?
Kirby
On Mon, Jul 19, 2010 at 18:30, kirby urner kirby.ur...@gmail.com wrote:
I'm becoming more aware of the fact that one
reason universities need to charge those
tuitions is to pay licensing fees to private
vendors who provide them with such basic
services
On Mon, Jul 19, 2010 at 6:55 PM, Tim Peters tim.pet...@gmail.com wrote:
[kirby urner]
... here's another basic
question. Is there a way, after importing from __future__,
to revert to the old ways later on in the same script?
...
I'm not saying this would ever be a good idea, just
wondering
Good question John.
My lengthy post was confusing because I want on the riff about
how range() doesn't return a list in 3.x (but a range object,
iterable but not an iterator).
In point of fact, I'm using Python 2.6 from start to finish in
this class, with only allusions and honorable mentions of
On Fri, Jul 16, 2010 at 7:27 AM, Tim Peters tim.pet...@gmail.com wrote:
[kirby]
...
Using print as a function is optional in 2.6 without
importing anything special.
Nope! `print` is a statement in all 1.x and 2.x versions of Python.
When you do, say,
print(1)
Ouch, thank you for
On Fri, Jul 16, 2010 at 9:31 AM, John Posner jjpos...@optimum.net wrote:
On 7/16/2010 9:59 AM, kirby urner wrote:
... Using print as a function is optional in 2.6 without
importing anything special.
Kirby, I believe you're confusing these two invocations:
Yes, you're correct, that's
Here is some of the code we will be using in class today. After that,
a source code file from yesterday's class:
Some Games
from random import randint, choice
# a list of (question, answer) tuples
quiz1 = [(What is the capital of Oregon?, Salem),
(Is Portland north of Salem?, Yes),
On Thu, Jul 15, 2010 at 9:24 AM, kirby urner kirby.ur...@gmail.com wrote:
Here is some of the code we will be using in class today. After that,
a source code file from yesterday's class:
Some Games
from random import randint, choice
# a list of (question, answer) tuples
quiz1
On Thu, Jul 15, 2010 at 7:37 PM, Tim Peters tim.pet...@gmail.com wrote:
snip
In fact, if you don't mind permuting the quiz each time, there's no
need to make a copy of the quiz then either (because nothing is ever
removed from it):
def askq(quiz = quiz1):
shuffle(quiz)
for q, a
The login process was pretty smooth at PSU. On first login,
they're asked to change passwords.
I kept harping on their needing to not forget the new passwords,
but of course it's the user names, not the passwords, they're
likely to lose.
It's all coming back to me now (I've taught this class,
I'm gearing up to do another Python course. PSU seems
more locked down than ever BTW. I've gotta be met by an
official to hand out user logins, as these cannot be
transmitted electronically.
That's not how it used to be when I taught there before.
We're going back to hand carry and paper
Yeah, Python 3.x is not ready for prime time in several respects,
all talk of Eclipse aside, but that's to be expected as it's still
pretty new.
I've seen some buzz regarding the #python channel on Freenode,
where I gather some bots have been automatically steering
people away from the 3.x
Just wanted to share experiences using PyDev plugin within
Eclipse, with Python 3...
I've not been unable to get pickle to work properly, with the
error confirmed by others.
Sometimes (in at least one case) an error marker will
indicate a module name cannot be resolved, and yet it
imports and
://tetrahedraverse.com/tverse/packings/temp2/tetraspace.pdf
)
Kirby Urner
4Dsolutions.net
--
Computer science is the new mathematics.
-- Dr. Christos Papadimitriou
(thx to mp)
___
Edu-sig mailing list
Edu-sig@python.org
http://mail.python.org/mailman/listinfo/edu-sig
On Tue, Jan 26, 2010 at 2:53 AM, David MacQuigg macqu...@ece.arizona.edu
wrote:
kirby urner wrote:
I've been hyping digital mathematics as a kind of niche marketing term,
as distinct from discrete but is this wise? Per math-thinking-l
(another
list), I'd say I'm in the distinct minority
Thank you Daniel, this makes my day.
Downloading now...
Kirby
On Fri, Jun 11, 2010 at 7:50 AM, Daniel Ajoy da.a...@gmail.com wrote:
Date: Wed, 9 Jun 2010 23:56:58 -0700
From: kirby urner kirby.ur...@gmail.com
Regarding Logo, there's an esoteric genre of Logo
where the turtle swims in a 3D
Regarding Logo, there's an esoteric genre of Logo
where the turtle swims in a 3D tank, has roll,
pitch and yaw type parameters, more like a small
airplane. I'm pretty sure we had open source free
versions. Lemme go check:
... found some links. Anyone recommend a
3D Logo page?
My approach was
On Thu, May 27, 2010 at 3:15 AM, Andre Roberge andre.robe...@gmail.com wrote:
On Thu, May 27, 2010 at 2:52 AM, kirby urner kirby.ur...@gmail.com wrote:
Much appreciated André!
It was a fun challenge.
:-)
I think our solutions are similar:
... yours is better though
By what magic might we turn a string object into
a top-level name: that is the question this lesson
addresses.
I do have an answer in the queue, my proposed solution.
However I'd be happy to see others toss in some ideas,
just to test whether my lesson plan is clear enough to
get across what
On Wed, May 26, 2010 at 7:21 PM, Andre Roberge andre.robe...@gmail.com wrote:
Ok, here's my solution:
def make_root(i):
... def _root(x):
... return pow(x, 1.0/i)
... return _root
...
for i in range(1, 11):
... locals()['root' + str(i)] = make_root(i)
...
root2(4)
Much appreciated André!
I think our solutions are similar:
... yours is better though, in that you don't make use of exec.
My use of it was superfluous.
Changing my solution, in light of yours:
#===
def makeroot(N):
try:
assert type(N)==type(1) and N=0
except:
raise
Hey Kirby!! This is the best explanation I've seen of Python's argument
passing subtleties. If you don't mind I would like to post it on our
PyKata website in a section Tips from the Masters, with you as author,
of course. We could also put a link to a page on your website, if you
prefer.
--
Something I maybe hadn't been clear on
before cramming for a workshop:
Even functions with purely positional
parameters may be passed a dict, in
which case the positional parameters
will be treated like named ones, i.e.
the dict will map to them.
I'll use the new formating protocol:
from
On Fri, Apr 30, 2010 at 12:19 AM, Jan Ulrich Hasecke
juhase...@googlemail.com wrote:
Hi,
since three years I am guiding a Python voluntary workgroup in a school
and we are suffering from a badly organized IT environment (a rigidly
restricted Windows setting).
Most of all we miss a decent
On Wed, May 5, 2010 at 2:08 PM, Jurgis Pralgauskis
jurgis.pralgaus...@gmail.com wrote:
Hello,
I think one of best ways to teach programming is with examples (of
course with a bit of theory explanation).
I'd like to test my students' general ability to undersnand examples.
Because I am
Hey Ed, your name goes by in my (eclectic, all over the map) blog post
of today, thought I'd give you a heads up.
http://worldgame.blogspot.com/2010/04/wheeling-dealing.html
I know my suggestion to Mike D that he get involved in compiling APL
for the XO didn't go anywhere (yet) -- that seemed a
I had the good fortune to lead a three day
immersive training in Python for scientist
technicians working with astronomical data
from Hubble.
The focus was basic, core Python, although
the workaday environment is intensively
NumPy and Pyfits related (also matplotlib).
Students found this
On Fri, Apr 23, 2010 at 3:24 PM, Mark Engelberg
mark.engelb...@alumni.rice.edu wrote:
On Fri, Apr 23, 2010 at 11:46 AM, Bill Punch pu...@cse.msu.edu wrote:
To round out the
top three, which are the ones that get even my best students, look at the
below:
myVar = 27
def myFun ():
print
I've mostly been writing about a new kind of math class at the high school
level that distinguishes itself from the precalculus - calculus track.
This has partly to do with politics, as I think it's easier to develop something
new and set that alongside already existing options (traditional
I'm sensing some confusion and/or a mish-mash of ideas around
the idea of a Python script, module, library, program. In Python,
these somewhat amount to the same thing in that to load a module
is to run a script (even if it doesn't do anything). However, when
people go to write a program,
Menu Fun
by K. Urner
Oregon Curriculum Network: DM Track
Building up a small vocabulary of test
modules will help you experiment with
design patterns and syntax. You may
wish to repurpose the code to be about
something other then menu fun. Maybe
save a snapshot with a different name.
Fork
Before 2nd Life there was Active Worlds, including some set aside for
education. Friends and I built a virtual world and held conferences
there. Bonnie de Varco built a virtual high school. We sent in our
avatars at appointed times, looked around and talked.
You'll find a screen shot here,
Here's a module people could easily expand upon, staying with
Jabberwocky as the target text.
I'm by no means a master of the regexp. For example, I wanted to pick
out all sentences with
Jabberwock including those beginning and ending with quote marks (if
present), i.e. keeping
the quotes in the
playing with polymorphism
by Kirby Urner
Portland, Oregon
April, 2010
import re
from random import choice
class Animal(object):
def __init__(self, name):
self.name = name
self.stomach = []
def eat(self, food):
self.stomach.append(food)
def poop(self
On Tue, Apr 13, 2010 at 11:02 AM, ch...@seberino.org wrote:
On Tue, Apr 13, 2010 at 10:30:49AM -0700, David MacQuigg wrote:
Good observation. I wasn't thinking of parallel computing at all. I
can see a need for something very different in this realm. I'll stick
with my original bet,
On Sun, Apr 11, 2010 at 7:51 PM, Edward Cherlin echer...@gmail.com wrote:
On Sun, Apr 11, 2010 at 21:03, Andrew Harrington ahar...@luc.edu wrote:
Well put David.
My choices are always about me and a particular situation. I would not
teach J to beginners
I would use the +-*% (+-×÷) subset
On Mon, Apr 12, 2010 at 12:36 AM, kirby urner kirby.ur...@gmail.com wrote:
SNIP
How about scholarships for veterans to enter nursing, other medical
professions?
The health professions are ravenous for computing and data
services.
My daughter is the Portland district champion debater
On Sat, Apr 10, 2010 at 4:41 PM, kirby urner kirby.ur...@gmail.com wrote:
Below is current source for ch.py, a module for exploring volume
relationships starting with a ground state (a default) known as the
concentric hierarchy of polyhedra.
OK, a couple replies to this one:
(a) I found
On Mon, Apr 12, 2010 at 9:16 PM, kirby urner kirby.ur...@gmail.com wrote:
snip
OK, a couple replies to this one:
(a) I found the bug: I'd neglected to subclass 'object' as my root object,
so was not getting new-style classes, just classic classes -- we still
have that distinction in 2.6
On Sat, Apr 10, 2010 at 9:25 PM, Helene Martin lognatu...@gmail.com wrote:
(Speaking as a high school teacher with ~120 students in 3 different
levels of computer science courses in a public school in Seattle)
That's hard work and you have my respect for it.
I started out as a full time high
2010/4/11 Lee Harr miss...@hotmail.com:
Pynguin is a python-based turtle graphics application.
It combines an editor, interactive interpreter, and
graphics display area.
I like the idea of using turtles to plot graphs. Replacing graphing
calculators with Python is easier when there
The chapter on interest calculations in Liber Abaci was particularly
important.
I'm sure you're right. Euler added to the interest calculations literature
as well.
Nasty stuff, interest, really gets out of hand.
But then nature is full of exponentially curved responses. I don't wonder
On Fri, Apr 9, 2010 at 9:41 AM, Edward Cherlin echer...@gmail.com wrote:
[sigh]
Do math tables in a math array language.
degrees =. i. 91 NB. 0..90
radians =. degrees * o. % 180
table =. |: degrees, 1 2 3 o./ radians
where
=. is assignment
i. creates a list of consecutive numbers
On Sat, Apr 10, 2010 at 9:23 AM, Helene Martin lognatu...@gmail.com wrote:
I humbly disagree that this is the right place to start. I teach
students with diverse backgrounds -- some extremely bright and others
really behind in school and using Python as a calculator is one thing
they would
Below is current source for ch.py, a module for exploring volume
relationships starting with a ground state (a default) known as the
concentric hierarchy of polyhedra.
The user begets various polyhedra from their class definitions, then resizes
them at will, perhaps using the * operator in place
I think Guido was wise to start his tutorial by showing how we
might use Python as a calculator.
We might assume many students in this day and age are quite
familiar with this device, and even if they're not, the text might
project one, show a picture on the screen, if what these things
used to
On Sun, Mar 28, 2010 at 5:36 AM, Bert Freudenberg b...@freudenbergs.de wrote:
On 28.03.2010, at 07:54, kirby urner wrote:
I tried introducing FOSS witch on Diversity (python.org) and
appeared to get no takers.
Hacker, pirate, wizard, geek, dictator... but not witch.
Google for haecksen
Surprisingly, this book has not been mentioned before on Edu-sig if a Google
search of the archives is to be believed.
I believe you're correct.
Here are excerpts [and comments on the excerpts] which suggest why it might
be useful to Python-using Educators:
pg 41
Torvalds, who is known
Here are some looks at summing consecutive integers, ways
to sum 1 + 2 + ... + n in Python:
We start with the closed form, which doesn't actually need
to iterate through intermediate terms, works directly with n,
the last term in the sequence:
def trinumbs(n):
return n * (n + 1) // 2
On Fri, Mar 26, 2010 at 10:38 PM, kirby urner kirby.ur...@gmail.com wrote:
snip
How else might we address a Python range object?
With slicing notation:
d[1]
1
d[4]
4
Erratum: no, not with slicing notation, with individual indexes only:
d[2:3]
Traceback (most recent call last
On Thu, Mar 25, 2010 at 7:40 PM, ch...@seberino.org wrote:
I'm teaching high school math to homeschoolers and I'm looking for how to make
geometry year meaningful.
Most geometry taught in high school is flat, planar.
This is a problem in an age of HDTVs, LCDs.
If you wanna blow some time on
On Tue, Mar 23, 2010 at 7:29 AM, Bill Punch pu...@cse.msu.edu wrote:
snip
If you have any comments, we'd love to hear them.
Hi Bill --
I enjoyed poking through some of these, reminiscent of some of the
SuperQuest challenges for Oregon's annual software competition,
high school students
-- Forwarded message --
From: kirby urner kirby.ur...@gmail.com
Date: Mon, Mar 1, 2010 at 8:47 AM
Subject: Re: python for math
To: mark
Hi [ Mark ] --
I'm not proposing to replace traditional math notation with Python's,
only to have a computer language expressing these same concepts
without
Interesting thread.
If CS manages to stop being a mere elective, that would change the
dynamics.
In Oregon, the push is to fold anything worthwhile in CS into math
proper, as at least that counts towards a requirement (3 years of
math), whereas CS is highly dispensable when the budge ax cuts
(as
On Thu, Feb 25, 2010 at 12:17 PM, David MacQuigg
macqu...@ece.arizona.edu wrote:
Since we are changing the name of the project from PyWhip to (PyKata,
PyPractice, PyJet, ???), now might be a good time to reconsider some other
basic choices. App Engine seems to be the right choice for the
I briefly blogged about our meeting last night.
http://mybizmo.blogspot.com/2010/02/learning-on-line.html
I posted Ed Cherlin's Chinese + Arabic sig as a test of the unicode
interface, even though he couldn't find Elluminate for his distro, so
had to bail.
Maria D. did a good job of hosting,
On Thu, Feb 25, 2010 at 4:23 PM, David MacQuigg
macqu...@ece.arizona.edu wrote:
kirby urner wrote:
At issue is whether try-over-the-web is a way you need to go, granted
other language communities are trying it.
You've got Python out of the box if you're a Linux user, and so the
question
On Thu, Feb 25, 2010 at 6:00 PM, DiPierro, Massimo
mdipie...@cs.depaul.edu wrote:
Mind that my opinion is biased since I am the author of web2py.
snip
I will be happy to answer more specific questions on the topic but I am in
India for a physics conference and have limited connectivity. I
On Thu, Feb 25, 2010 at 8:27 PM, Edward Cherlin echer...@gmail.com wrote:
On Thu, Feb 25, 2010 at 19:33, kirby urner kirby.ur...@gmail.com wrote:
I briefly blogged about our meeting last night.
http://mybizmo.blogspot.com/2010/02/learning-on-line.html
Thank you.
I posted Ed Cherlin's
701 - 800 of 2016 matches
Mail list logo