I'm a web developer working on a bit of javascript code for a personal project. I took through Calc II and linear algebra in college, but haven't looked at any of it a couple of years, so I'm a little rusty on the details. Anyway, what I'm trying to work out is a way to scale/transform an equation giving the position of an element as a function of time, of the form f(x) = sin(ax+b)+c , so that it has a given f(x) and f'(x) for two given values of x, and f''(x) at one of those values. If I remember right, I'm going to need to set up a system of equations including the function and both derivatives and solve it to calculate the necessary values of a, b, and c, but I'm a bit rusty on the details. If anyone would be so kind as to offer some clarification and save me a few more days of trial and error, I'd greatly appreciate it. Thanks!(adsbygoogle = window.adsbygoogle || []).push({});

-Ryan

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Fitting a Sine Curve to Two Points

Loading...

Similar Threads for Fitting Sine Curve | Date |
---|---|

A Help with Discrete Sine Transform | Sep 29, 2017 |

I Finding value of parameters to fit some data | Sep 11, 2017 |

I Curve fitting | Jun 7, 2016 |

Fitting a (Very) Large Random Number To A Formula | Jul 16, 2015 |

Fitting a cosine function to an inflection point and a point with known derivative | Oct 30, 2012 |

**Physics Forums - The Fusion of Science and Community**