Accountants are not known for using sophisticated mathematical tools. Yet modern techniques enable them to handle many situations arising in what is known as "complex accounting".