Chapter 9:Analog Multipliers

Example No. 9.1, Page No:411

In [1]:
#Variable Declaration:
import math

#Calculations:
#Part 1
th1=math.acos(0)
th=th1*180/math.pi               #Calculating theta
#Part 2
Vodc=4.47*4.47*math.cos(th1)/20  #Calculating output voltage 
#For theta=+/-30 deg
Vodc1=math.cos(30*math.pi/180)   #Calculating output voltage for theta 30
#For theta=+/-45 deg
Vodc2=math.cos(45*math.pi/180)   #Calculating output voltage for theta 45
#For theta=+/-60 deg
Vodc3=math.cos(60*math.pi/180)   #Calculating output voltage for theta 60

#Results:
print('Theta= + or - %d degree'%th)
print('\nVodc for 30 degree= %.3f V'%Vodc1)
print('\nVodc for 45 degree= %.3f V'% Vodc2)
print('\nVodc for 60 degree= %.1f V'% Vodc3)
Theta= + or - 90 degree

Vodc for 30 degree= 0.866 V

Vodc for 45 degree= 0.707 V

Vodc for 60 degree= 0.5 V
In [ ]: