Please check out [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=2082.0]Suposition of several waves[/url]
I hope it is what you need.  :D