//Problem 2 //Calculate the hysteresis loss clear clc f=50// Frequency in Hz v=0.01// Volume of the transformer core in m^3 A= M=1750*1000// Saturation magnetization of BCC irons in A/m m=(M*v)/n// Net magnetic moment per atom in Am^2 printf('Net magnetic moment = %.27f ',m)