Assuming you're doing t3 Elite, many melee attacks still do normal damage, while a lot of projectiles do pure specialized damage. Stand in front of a Trojan sword slam and you'll get a ton of Normal Damage and no Shadow, Lumbers and Thwackers will do split Normal and Elemental, and turrets will simply laugh at Plate Armor with their pure Elemental, Shadow or Piercing, depending on the turret.
Also, in the deeper t1 depths on Elite, many enemies start doing split damage. Just ask my Heater Shield (Normal+Elemental+Freeze), which doesn't last as long against the Snarbolax compared to 2* and 3* Defenders (Normal+Piercing), in spite of its 5 stars worth of Normal defense.
As for actual mathematical calculations..... Well, that'll just make my head hurt. Either way, it boils down to looking at the damage bars that pop out when you get hit by an attack.