So is mathematics and logic then considered metaphysical?
A rather imprecise question. But do remember that if it isn't physical, it isn't real.