//chapter 2:THE DEVICE //Example 2.2 Vf=2.1;//voltage safety factor// V=230;//main supply// Vpiv=sqrt(2)*Vf*V;//peak inverse voltage// printf('value of peak inverse voltage=%fv',Vpiv);