Previous in Forum: When Does Safety Go Too Far?   Next in Forum: Favorite Movie Lines
Close
Close
Close
12 comments
Rate Comments: Nested
Member

Join Date: Sep 2010
Location: Lago Vista, TX
Posts: 7

What Is This Function?

12/17/2010 1:45 PM

Does anyone know of a continuous function that approximates the following curve?

__________________
Patrick Dixon
Register to Reply
Pathfinder Tags: function graph
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Safety - ESD - New Member Popular Science - Cosmology - Amateur Astronomer Technical Fields - Technical Writing - Writer India - Member - Regular CR4 participant Engineering Fields - Optical Engineering - New Member

Join Date: Dec 2007
Location: 18 29 N 73 57E
Posts: 1390
Good Answers: 31
#1

Re: What is this function?

12/17/2010 1:52 PM

You may try finding X, Y coordinates of various points on the curve and then put those in "CurveExpert" a free software for fitting the points on the curve. There are many options like quadratic, spline, polynomial of different order for fitting. See which curve gives the best resemblance with this curve. You will get the equation for the curve fitting to the points.

Register to Reply
Member

Join Date: Sep 2010
Location: Lago Vista, TX
Posts: 7
#2

Re: What Is This Function?

12/17/2010 2:42 PM

GSuhas,

Wow, that is a beautiful application! CurveExpert is great. However, I still have not found a function that approximates the graph. I will keep playing with it, but if anyone can give me ideas I would appreciate it.

__________________
Patrick Dixon
Register to Reply
Guru
Technical Fields - Technical Writing - New Member Engineering Fields - Piping Design Engineering - New Member

Join Date: May 2009
Location: Richland, WA, USA
Posts: 21017
Good Answers: 795
#3

Re: What Is This Function?

12/17/2010 3:07 PM

Can you allow a piecewise function that from x ~8-25 is a bit over 1/4 of a sine wave, from x ~75-92 likewise, and three linear segments?

__________________
In vino veritas; in cervisia carmen; in aqua E. coli.
Register to Reply
Guru
Engineering Fields - Optical Engineering - Member Engineering Fields - Engineering Physics - Member Engineering Fields - Systems Engineering - Member

Join Date: Apr 2010
Location: Trantor
Posts: 5363
Good Answers: 647
#4

Re: What Is This Function?

12/17/2010 3:10 PM

It looks a lot like the graph for the change in frequency of a sound due to the doppler shift. You might try googling for that equation and then modify it to match your graph.

__________________
Whiskey, women -- and astrophysics. Because sometimes a problem can't be solved with just whiskey and women.
Register to Reply
Guru
Popular Science - Cosmology - New Member Engineering Fields - Civil Engineering - New Member Engineering Fields - Nuclear Engineering - New Member United States - Member - New Member

Join Date: Aug 2010
Posts: 714
Good Answers: 38
#5

Re: What Is This Function?

12/17/2010 3:23 PM

I would approach this as a combination of step functions. I was taught it easiest to deal with these using Laplace transforms. I'm not answering your question directly and perhaps not as helpful as the "CurveExpert" software, but I hope it points you in a helpful direction.

__________________
Sometimes my thoughts are in a degree of order so high even I don't get it...
Register to Reply
Member

Join Date: Sep 2010
Location: Lago Vista, TX
Posts: 7
#6

Re: What Is This Function?

12/17/2010 3:27 PM

A segmented-piecewise approach is fine, but the function needs to be continuous across the range of inputs. Super-imposed continuous functions would be fine.

__________________
Patrick Dixon
Register to Reply
Anonymous Poster
#8
In reply to #6

Re: What Is This Function?

12/17/2010 4:21 PM

The Fourier Transform is the continuous function that can imitate your curve. Indeed it can approximate any curve over a given data set.

http://en.wikipedia.org/wiki/Fourier_transform

Register to Reply
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#7

Re: What Is This Function?

12/17/2010 4:16 PM

Motion control firmware have use similar for speed curves

0st - no motion

1st - S-curve acceleration

2nd - ramped deceleration

3rd - S-curve deceleration

but it will result in jerky motion

Google "Galil controllers" it might help

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#9

Re: What Is This Function?

12/17/2010 11:59 PM

It would be difficult to imitate the sharp changes on either side of the ramp. (Sin to straight line)

for that an additional input is needed (such as timer. limit switch, position sensor, speed sensor, acceleration sensor , keyboard or whatever)

HP Basic (Rocy Mountain Basic) of the 70's to 80's had a nice feature called boolean-algebra. (True=1 , False=0). [Easy to duplicate in any programming system]

An exact formula could then be written to give the desired result.

What is the purpose or application ?

For the S curved parts you can use and adapt the pre-computer formula for Sin X

y = Sin x = x - x^3/3! + x^5/5! - x^7/7! + X^9/9! . . . . . . .

and the line

y = mx + c

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Anonymous Poster
#10
In reply to #9

Re: What Is This Function?

12/18/2010 2:26 AM

Again, the fourier transform is your friend for this type of function.

you just need to get the higher frequency waves to obtain a good approximation.

programs are available for this.

they give yoy therefore a continuous function over the interval required.

Register to Reply
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#11
In reply to #10

Re: What Is This Function?

12/19/2010 6:14 AM

Fourier transform is a good tool but I challenge you to scale and enter the graph and calculate and plot approximation superimposed on the original.

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#12

Re: What Is This Function?

12/19/2010 6:41 AM

Hi patjdixon

What is the purpose or the application?

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Register to Reply 12 comments
Copy to Clipboard

Users who posted comments:

Anonymous Poster (2); ChaoticIntellect (1); gsuhas (1); Hendrik (4); patjdixon (2); Tornado (1); Usbport (1)

Previous in Forum: When Does Safety Go Too Far?   Next in Forum: Favorite Movie Lines

Advertisement