Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Education » math-teach

Topic: Mathematician
Replies: 28   Last Post: Oct 15, 2010 8:47 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
GS Chandy

Posts: 6,683
From: Hyderabad, Mumbai/Bangalore, India
Registered: 9/29/05
Re: Mathematician
Posted: Oct 9, 2010 4:24 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Kirby Urner posted Oct 9, 2010 1:57 AM:
> On Fri, Oct 8, 2010 at 11:36 AM, Jonathan Groves
> <JGroves@kaplan.edu> wrote:

> > Mike and Wayne and others,
<SNIP>
> Like here's what I might call "discovery learning"...
>
> The teacher is projecting in front of the whole
> class, and enters the
> sequence below. She doesn't necessarily talk a lot
> during the
> demo, other than saying things like "lets see what
> this does",
> "how about this?" i.e. noises associated with doing
> some inquiry.
>
> Students have the ability to follow along and then
> branch off
> doing their own experiments. A time allotment is
> provided, say
> 15 minutes, at the end of which students volunteer to
> come in
> front of the room, take charge of the projector, and
> give up to
> 5 minutes elucidation of what they've learned and/or
> think is
> going on, for the benefit of the rest of the class.
>
> Here's the scroll (reading program), a real time demo
> in this
> case (frozen here):
>
> Python 3.1rc1 (r31rc1:73069, May 31 2009, 08:57:10)
> [MSC v.1500 32 bit
> (Intel)] on win32
> Type "copyright", "credits" or "license()" for more
> information.
>

> >>> int
> <class 'int'>
>

> >>> int('3')
> 3
>

> >>> int('3', 2)
> Traceback (most recent call last):
> File "<pyshell#2>", line 1, in <module>
> int('3', 2)
> ValueError: invalid literal for int() with base 2:
> '3'
>

> >>> int(3, 2)
> Traceback (most recent call last):
> File "<pyshell#3>", line 1, in <module>
> int(3, 2)
> TypeError: int() can't convert non-string with
> explicit base
>

> >>> int('3', '2')
> Traceback (most recent call last):
> File "<pyshell#4>", line 1, in <module>
> int('3', '2')
> TypeError: an integer is required
>

> >>> int('3', 10)
> 3
> >>> int('3', 9)
> 3
>

> >>> int('3', 2)
> Traceback (most recent call last):
> File "<pyshell#7>", line 1, in <module>
> int('3', 2)
> ValueError: invalid literal for int() with base 2:
> '3'
>

> >>> int('1000101010100', 2)
> 4436
>
> New topic. The teacher enters the following in an
> editor window,
> saves to site-packages and then runs:
>
> def f(g):
> def anon(x):
> return g(x + 2)
> return anon
>
> @f
> def m(x): return 2 * x
>
> @f
> def k(x): return x + 2
>
> print ( k(10) )
>
> print ( m(10) )
>
> Here is the output:
>

> >>> ================================ RESTART
> ================================
> >>>
> 14
> 24

> >>>
Sorry if I'm being stupid/obtuse - but I did not understand at all!!

GSC



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.