- #1
Alterscape
- 3
- 0
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!
-Ryan
-Ryan