blob: 338a3af4da41f44e9be870dda1f83d573a739a34 (
plain)
1
2
3
4
5
6
7
|
//EXAMPLE 2-7 PG NO 64-65
V1=24.15+%i*6.47; //VOLTAGE
V2=7.5+%i*12.99; //VOLTAGE
X=V1+V2; //ADITION fo v1&v2
disp('i)ADITION is in rectangular form = '+string (X)+' V')
X1=V1-V2; //subsraction of v1&v2
disp('i)substraction is in rectangular form = '+string (X1)+' V')
|