You could of course try to use a program made for such things. mIRC wasn't made for complex mathematical stuffs.