How to obtain the frequency/phase/power of a signal and then produce a waveform of arbitrary length from those parameters?

How do I obtain those 3 values?