> I confused things by my mistake in the specifications.
>
> The criterion for exiting the outer loop is that
>
> mpylist[0][1] * mult[0] + mpylist[1][1] * mult[1] + mpylist[2][1] *
> mult[2]
> + . . .
>
> be > zlim.
Can you try rewriting the spec correctly, because I'm still not
sure I understan
From: Alan Gauld
Date: 08/09/06 03:30:28
To: Kermit Rose; [email protected]
Subject: Re: [Tutor] Exercise in writing a python function.
> The current specifications for the function are:
>
> def incr(mult,z,zlim,mpylist):
> # mult is a vector of exponents for the multiplier
> The current specifications for the function are:
>
> def incr(mult,z,zlim,mpylist):
> # mult is a vector of exponents for the multipliers in mpylist.
> # z is a positive odd integer.
> # zlim is the upper bound critical value for the sum of (
> mpylist[k][0] *
> mpylist[k][1] )
Just to clari
On 09/08/06, Kermit Rose <[EMAIL PROTECTED]> wrote:
> Hello John.
>
> Thanks for replying.
>
> In my previous version, I used z as the critical value,.
>
> Since I created zlim, a function of z, to be passed in as a parameter, I no
> longer need z
>
> in the parameter list.
>
> In another part of
On 09/08/06, Kermit Rose <[EMAIL PROTECTED]> wrote:
> def incr(mult,z,zlim,mpylist):
> # mult is a vector of exponents for the multipliers in mpylist.
> # z is a positive odd integer.
> # zlim is the upper bound critical value for the sum of ( mpylist[k][0] *
> mpylist[k][1] )
> # where kth mult