summaryrefslogtreecommitdiff
path: root/416/CH10/EX10.8/exp10_8pp.sce
blob: a67242ad41bcb97b0c290417c40b56f707cc743c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clear
clc
disp("example 10.8")
r1=22;r2=30;q1=0.2;q2=0.15
b22=0;b12=0;p1=100;pl=15//transmission losses are 0
b11=pl/(p1)^2
function [p1,p2]=power(x) //mathematical computation
    p1=(x-r1)/(q1+2*b11*x)
     p2=(x-r2)/q2
endfunction
[a,b]=power(60)
printf("l1=1/(1-%.3f*p1)\nl2=[1/(1-0)]=1\ngiven lamda=60\nsince ic1*l1=lamda ;ic2*l2=lamda\ntotal load=%dMW",b11*2,a+b-(b11*a^2))