Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Looking to time how long a command takes in mathematica 6 tia

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97077] Re: Looking to time how long a command takes in mathematica 6 tia
  • From: Joerg <schaber at biologie.hu-berlin.de>
  • Date: Thu, 5 Mar 2009 05:05:07 -0500 (EST)
  • References: <goj2i3$2uu$1@smc.vnet.net>

try Timing[]

ratulloch at gmail.com schrieb:
> Grettings All
> 
> I'm running this command
> Play[Piecewise[{{4.000000000*x^2 - 4.000000000*x,
>     0 = x <= 1}, {-2*x^2 + 8*x - 6, 1 = x <= 3}, {x^2 - 10*x + 21,
>     3 = x <= 7}, {-1/2*x^2 + 11*x - 105/2,
>     7 = x <= 15}, {.5714285714*x^2 - 21.14285714*x + 188.5714286,
>     15 = x <= 22}, {-.8000000000*x^2 + 39.20000000*x - 475.2000000,
>     22 = x <= 27}}], {x, 0, 27}]
> 
> and it's taking extremely long and would like to find out how long it
> takes to run this line.  Also if anyone has a more efficient way of
> using this command please let me know.  I'm just trying to output the
> wave file to an audio file.
> 
> Aloha
> sal2
> 


  • Prev by Date: How to express the results in normal cdf instead of erf()
  • Next by Date: Re: find the maxima in a function
  • Previous by thread: Re: Looking to time how long a command takes in mathematica 6 tia
  • Next by thread: Problems in writing into a sequential filename