To generate “arbitrary mathematical function” see … Expression Generator
To multiply one track waveform by another see … How can I amplitude modulate one channel with another ? - #11 by steve
[BTW the result of this multiplication process is not musical: it’s Dalek-y].