I'm trying to model something that seems fairly simple, but it's trickier than I thought on https://www.desmos.com.
On desmos I created a function:
$f(x)=y$
$y=(0 \leq x \leq 2)\sin( \pi x+b )$ to make a simple oscillating sine wave
I want to make a line of fixed length that has its origin on the sine wave, and moves along it when I play variable "b". (and maybe another variable that I don't realise that I need).
I've tried a couple of things like:
$y = (\sin(x) \leq x \leq ( \pi /4))y = mx + c$
$m = 2/ \pi$
and
points:
$(\cos(b), \sin(b))$
and
$(\pi/2, \sin(b))$
but I haven't quite got there yet
Once I have this sliding line, I want to do two things with it:
- make it's angle change, orthogonal to the line of the sine wave
- make a series of them moving along the sine wave.
I'm sure this is possible, and it's just that I'm not familiar enough in general to conjure it up.
any help would be warmly received.
thank you.
Disclaimer - I don't know enough to know whether this question has been answered already; and I don't know enough about how you want questions formatted on here or how to do it, sorry.