Here was my solution to avoid the NAN error.
void Update () {
// setMovementFactor
float cycles = 0;
if (period != 0)
{
cycles = Time.time / period; // Time.time grows continually from 0
}
const float tau = Mathf.PI * 2; // about 6.28
float rawSinWave = Mathf.Sin(cycles * tau); // goes from -1 to 1
print(rawSinWave);
movementFactor = rawSinWave / 2f + .5f;
transform.position = startingPos + (movementVector * movementFactor);
}