Talking about in general I haven't seen somewhere. However, I have read in a VEDIC maths book that there essentially exists some shortcut methods in that branch in which you can calculate these things easily.
I could site reference if you need, but it is time consuming.