# Name this Function!

**URL:** <https://boards.straightdope.com/t/name-this-function/341659>\
**Category:** Factual Questions\
**Created:** [January 26, 2006, 4:41am UTC](https://boards.straightdope.com/t/name-this-function/341659 "2006-01-26T04:41:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![prnt\_scr](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@prnt\_scr](https://boards.straightdope.com/u/prnt_scr)\
**Post date:** [January 26, 2006, 4:41am UTC](https://boards.straightdope.com/t/name-this-function/341659/1 "2006-01-26T04:41:23Z")

</div>

I’m having some fun right now in Excel trying to come up with a prediction model for wide release movies. I play a game called the [Hollywood Stock Exchange](http://www.hsx.com/) and I’m trying to refine my ability to predict box office results.

I was fiddling around… charting a few things here and a few things there. Calculating the delta of this and the fraction of that. When suddenly I started seeing very regular results in particular set of graphs. Amid the chatoic swirls and the mismatched overlays of my other graphs, I had come accross some kind of regular, asymptotic line.

“I’ve seen this before.” I thought. The name of it lost in some old calculus class from the past…

Well, If I had the proper baseline equation for this function I would be able to use it in my predicition model and test it against some historic box office numbers.  
I’m not sure what the data in the graph means. I was in the thick of things… calculating the derrivative of derrivatives and kind of lost my way. It has something to do with the rate at which the Weeknd BO Gross per/theater dwindles over time given that you already know the first 7 days at the BO. It could be usefull! We’ll see.

So. [Can you name this function?](http://www.photodump.com/viewer/dawgma/whatfunction.html)

---

<div class="post-metadata">

**Author:** ![Squink](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@Squink](https://boards.straightdope.com/u/Squink)\
**Post date:** [January 26, 2006, 4:51am UTC](https://boards.straightdope.com/t/name-this-function/341659/2 "2006-01-26T04:51:24Z")

</div>

Looks like a [under-damped oscillator](http://www.oz.net/~coilgun/theory/dampedoscillator.htm).

---

<div class="post-metadata">

**Author:** ![prnt\_scr](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@prnt\_scr](https://boards.straightdope.com/u/prnt_scr)\
**Post date:** [January 26, 2006, 5:06am UTC](https://boards.straightdope.com/t/name-this-function/341659/3 "2006-01-26T05:06:51Z")

</div>

> [@Squink](#):
>
> Looks like a [under-damped oscillator](http://www.oz.net/~coilgun/theory/dampedoscillator.htm).

Yes it does! Thanks.

The site also says of the function that it is a “sine wave in an exponential decay envelope.”

Now, between the damped-oscillator equations and a trig function, I think I’d rather deal with the latter.

So does anyone know the equation for a “sine wave in an exponential decay envelope.”? I’m sure that there must be an equation out there that would explain this line so that it’s simple enough that you would find it in a grade 12 calc class. Because to tell you the truth, I wouldn’t know where to start with those oscillator equations!

---

<div class="post-metadata">

**Author:** ![scr4](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@scr4](https://boards.straightdope.com/u/scr4)\
**Post date:** [January 26, 2006, 5:30am UTC](https://boards.straightdope.com/t/name-this-function/341659/4 "2006-01-26T05:30:02Z")

</div>

> [@prnt\_scr](#):
>
> So does anyone know the equation for a “sine wave in an exponential decay envelope.”?

That’s what **Squink** ’s link describes.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [January 26, 2006, 5:50am UTC](https://boards.straightdope.com/t/name-this-function/341659/5 "2006-01-26T05:50:01Z")

</div>

> [@prnt\_scr](#):
>
> So does anyone know the equation for a “sine wave in an exponential decay envelope.”? I’m sure that there must be an equation out there that would explain this line so that it’s simple enough that you would find it in a grade 12 calc class. Because to tell you the truth, I wouldn’t know where to start with those oscillator equations!

Something like, say, f(t) = [symbol]g[/symbol]\*exp([symbol]a[/symbol]t)\*sin([symbol]b[/symbol]t). Be aware that Excel is nowhere near sophisticated enough to pick out the most likely values for those coefficients.

---

<div class="post-metadata">

**Author:** ![prnt\_scr](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@prnt\_scr](https://boards.straightdope.com/u/prnt_scr)\
**Post date:** [January 26, 2006, 5:50am UTC](https://boards.straightdope.com/t/name-this-function/341659/6 "2006-01-26T05:50:58Z")

</div>

> [@scr4](#):
>
> That’s what **Squink** ’s link describes.

You mean I can’t have a nice simple sine equation like: \*\*f(x) = a sin(x)^n  
\*\*? ☹

I have no idea what all the “farads”, “ohms”, “henrys”, “jacobs” and “sally’s” would mean in my BO prediction equations. A baseline sine equation that I could shift up or down and increase the amplitude or wavelength with a flick of a coefficient would make more sense to me.

Is **I(t) = (V/BL) (e^-t(R/2L)) sin(t((1/LC)-(R^2/4L^2)^1/2)** really the only way?? That’s could be a nightmare in Excel!

Think about it.

B=$D$4  
R=A6  
L=IF(($J$5/K7)\<10,D5%&N$@(D\*SMSDKJSKD

OMG!

---

<div class="post-metadata">

**Author:** ![prnt\_scr](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@prnt\_scr](https://boards.straightdope.com/u/prnt_scr)\
**Post date:** [January 26, 2006, 6:50am UTC](https://boards.straightdope.com/t/name-this-function/341659/7 "2006-01-26T06:50:03Z")

</div>

I appreciate your suggestions everyone. Thanks.

I just finished talking with **wolfstu** who cut through some of my confusion and suggested:

\*_f(x) = e^(-x)sin(x)_

as a baseline equation. He further refined the equation to:

\*_-50e^(-0.025x)sin(0.5x)+50_

We plugged it into an [online graphing calculator](http://people.hofstra.edu/staff/steven_r_costenoble/Graf/Graf.html) and the result was similar to my graphs. I realize now that a “sine wave in an exponential decay envelope” is a fancy way of saying “multiply an exponential by a sine”, and **wolfstu** was kind enough to point that out for me.

So thanks again guys for allowing me to pick your brains. I’m off to have some fun with this equation now!

Cheers.

---

<div class="post-metadata">

**Author:** ![prnt\_scr](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@prnt\_scr](https://boards.straightdope.com/u/prnt_scr)\
**Post date:** [January 26, 2006, 6:55am UTC](https://boards.straightdope.com/t/name-this-function/341659/8 "2006-01-26T06:55:50Z")

</div>

**ultrafilter**

\*\*Wolfstu \*\*just explained to my that your suggested equation \*_f(t) = g\*exp(at)sin(bt)_ is the same thing that he suggested. I see it now. I guess my brain is just stubbornly attached to the format that I first learned when writing calc equations.

Thanks **ultrafilter**.

---

<div class="post-metadata">

**Author:** ![cerberus](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@cerberus](https://boards.straightdope.com/u/cerberus)\
**Post date:** [January 26, 2006, 7:22am UTC](https://boards.straightdope.com/t/name-this-function/341659/9 "2006-01-26T07:22:11Z")

</div>

For that level of calculation, use **Mathematica**. Or an HP scientific calculator…
