summaryrefslogtreecommitdiff
path: root/343/CH2/EX2.6/ex2_6.sce
blob: 3cc8f64d00107d4317a6de50ed15e5947bc00e5a (plain)
1
2
3
4
function y=f(t),y=6*t,endfunction           //Defining the voltage equation
T=3;
Res=intg(0,3,f)/(T);
disp("Volts",Res,"Average voltage value");