summaryrefslogtreecommitdiff
path: root/1529/CH10/EX10.17/10_17.sce
blob: 3e740b3f25a48ae1446d69f5d470fd67fe6b9b4f (plain)
1
2
3
4
5
6
//Chapter 10, Problem 17
clc;
V2=4;                   //output voltage
V=27;                   //voltage gain in decibels
V1=V2/(10^(V/20));      //calculating input voltage using logarithm
printf("Input voltage = %f V",V1);