Re: 480 Midterm

0 views
Skip to first unread message

William Stein

unread,
May 15, 2011, 4:53:02 PM5/15/11
to Eddie Tsay, 480uw11
On Sun, May 15, 2011 at 1:43 PM, Eddie Tsay <jian...@gmail.com> wrote:
> Hello Professor Stein,
>      I just had a couple questions regarding the midterm:
>     1) About timing our function. You mentioned in class that using timeit
> probably wasn't the way to go. Do you remember what it was you said in class
> regarding this issue? Specifically, I'm wondering if you mentioned anything
> about why we shouldn't use timeit and also if you mentioned another timing
> function we should use instead.

Using the cputime function. Or do

sage: time call_your_function()

>    2) For number 4, do we need to be connecting the points to one another to
> form a staircase?

That's up to you. Either way is fine by me.

William


--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

Colin Dilwoth

unread,
May 15, 2011, 6:19:19 PM5/15/11
to 480uw11
would walltime() also be acceptable?

On May 15, 1:53 pm, William Stein <wst...@gmail.com> wrote:

William Stein

unread,
May 15, 2011, 7:59:19 PM5/15/11
to 480...@googlegroups.com
On Sunday, May 15, 2011, Colin Dilwoth <colind...@gmail.com> wrote:
> would walltime() also be acceptable?
>

Yes

Reply all
Reply to author
Forward
0 new messages