Added function for partial derivation. Added formulas for all measurements 1 - 6