Search All of the Math Forum:

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Structured Programming
Replies: 103   Last Post: Mar 25, 2014 12:33 AM

 Messages: [ Previous | Next ]
 Robert Hansen Posts: 11,345 From: Florida Registered: 6/22/09
Re: Structured Programming
Posted: Mar 6, 2014 11:57 PM

On Mar 6, 2014, at 11:22 PM, kirby urner <kirby.urner@gmail.com> wrote:

>
> Yet here you are back to teaching students that f(x) means something like?
>
> int factorial(int n) {
> if (n == 1) return n;
> return n * factorial(n - 1);
> }
>
> Isn?t it a lot easier, in math class, to get the point across by saying n! = 1 * 2 * 3 * ? * n?
>
>
> They'll probably use a calculator rather than something they wrote
> in code. They won't use pencil and paper much.
>
> Factorial is used in probabilities / combinatorics, so we would be
> adding more functions to this one soon, making use of factorial().

I don?t think you understood what I meant. The factorial *function* falls out of and intertwines with all the mathematics of combinatorics and probability. How did you reduce that to *the factorial* is used in probabilities and combinatorics? Is used? I just hope your book is like Litvin?s in that it treats the mathematics behind the application, before the application.

http://www.skylit.com/python/text/Chapter05.pdf
http://www.skylit.com/python/text/Chapter10.pdf

That is all I am saying. You seem to want to begin these topics with programming while Litvin begins them with mathematics and then moves on to the programming.

If your approach is different from Litvin?s, how is it be different? What do you add and what do your remove?

Bob Hansen

Date Subject Author
3/6/14 kirby urner
3/6/14 Robert Hansen
3/7/14 Louis Talman
3/7/14 kirby urner
3/7/14 Robert Hansen
3/7/14 Joe Niederberger
3/8/14 Joe Niederberger
3/9/14 Robert Hansen
3/9/14 GS Chandy
3/9/14 GS Chandy
3/9/14 GS Chandy
3/10/14 kirby urner
3/9/14 GS Chandy
3/10/14 kirby urner
3/11/14 Louis Talman
3/11/14 Robert Hansen
3/11/14 kirby urner
3/12/14 Robert Hansen
3/12/14 kirby urner
3/9/14 GS Chandy
3/10/14 GS Chandy
3/9/14 GS Chandy
3/9/14 GS Chandy
3/9/14 GS Chandy
3/10/14 Joe Niederberger
3/10/14 Robert Hansen
3/11/14 Robert Hansen
3/10/14 GS Chandy
3/12/14 kirby urner
3/11/14 GS Chandy
3/12/14 GS Chandy
3/12/14 GS Chandy
3/11/14 Joe Niederberger
3/11/14 Robert Hansen
3/11/14 Joe Niederberger
3/11/14 GS Chandy
3/12/14 Joe Niederberger
3/12/14 Robert Hansen
3/12/14 GS Chandy
3/12/14 Robert Hansen
3/12/14 GS Chandy
3/12/14 GS Chandy
3/12/14 GS Chandy
3/12/14 GS Chandy
3/12/14 Robert Hansen
3/12/14 Robert Hansen
3/13/14 GS Chandy
3/13/14 GS Chandy
3/13/14 Robert Hansen
3/13/14 Joe Niederberger
3/13/14 Joe Niederberger
3/13/14 Robert Hansen
3/13/14 GS Chandy
3/13/14 Robert Hansen
3/13/14 Joe Niederberger
3/16/14 Robert Hansen
3/15/14 GS Chandy
3/13/14 GS Chandy
3/14/14 kirby urner
3/14/14 GS Chandy
3/15/14 kirby urner
3/16/14 Robert Hansen
3/16/14 kirby urner
3/16/14 Robert Hansen
3/16/14 kirby urner
3/16/14 Robert Hansen
3/17/14 Joe Niederberger
3/18/14 Robert Hansen
3/18/14 Robert Hansen
3/18/14 Joe Niederberger
3/18/14 Robert Hansen
3/18/14 Joe Niederberger
3/18/14 Robert Hansen
3/18/14 Robert Hansen
3/18/14 kirby urner
3/18/14 Robert Hansen
3/18/14 Joe Niederberger
3/18/14 Robert Hansen
3/18/14 kirby urner
3/18/14 Robert Hansen
3/18/14 kirby urner
3/18/14 Robert Hansen
3/18/14 kirby urner
3/18/14 Robert Hansen
3/18/14 kirby urner
3/18/14 Robert Hansen
3/18/14 kirby urner
3/18/14 Robert Hansen
3/19/14 kirby urner
3/18/14 Joe Niederberger
3/18/14 Robert Hansen
3/18/14 Robert Hansen
3/18/14 Joe Niederberger
3/19/14 Robert Hansen
3/20/14 Louis Talman
3/20/14 Robert Hansen
3/20/14 Louis Talman
3/18/14 Joe Niederberger
3/19/14 Joe Niederberger
3/19/14 Robert Hansen
3/20/14 Louis Talman
3/19/14 Joe Niederberger
3/25/14 GS Chandy