There is no good way to do this directly in Band Math. You would have to apply the equation one band at a time, then save them back together into a single file.
The better solution is to write a program using ENVI's MATH_DOIT on a file. There are some simple examples, but not exactly what you need, in this help article:
http://www.exelisvis.com/.../ArticleId/3893.aspx
The key will be to build the correct equation in a loop for each band. You might give the example code a try and if you run into difficulty, contact technical support directly.