Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8687 > unrolled thread

Re: How I can I optimize the following code in order to

Started byMurray Eisenberg <murray@math.umass.edu>
First post2012-02-22 10:35 +0000
Last post2012-02-22 10:35 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How I can I optimize the following code in order to Murray Eisenberg <murray@math.umass.edu> - 2012-02-22 10:35 +0000

#8687 — Re: How I can I optimize the following code in order to

FromMurray Eisenberg <murray@math.umass.edu>
Date2012-02-22 10:35 +0000
SubjectRe: How I can I optimize the following code in order to
Message-ID<ji2gd7$kc5$1@smc.vnet.net>
I don't see the point of evaluating exactly the same expression 3000^2 
times.

On 2/21/12 6:09 AM, Liwen Zhang wrote:
> How I can I optimize the following code in order to get very short
> running time?
>
> Time1 = AbsoluteTime[];
> n = 3000;
> Do[Do[x =
>       Sin (45.0)*ArcSin (0.5)*Sqrt (5.0)*ArcTan (2.5555);, {n}], {n}];
> Time2 = AbsoluteTime[];
> Print[Time2 - Time1];
>

-- 
Murray Eisenberg                     murray@math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web