Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97045] Looking to time how long a command takes in mathematica 6 tia sal2
  • From: ratulloch at gmail.com
  • Date: Tue, 3 Mar 2009 05:58:04 -0500 (EST)

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: equation numbering
  • Next by Date: Re: Using Play command and polynomial tia sal2
  • Previous by thread: equation numbering
  • Next by thread: find the maxima in a function