summaryrefslogtreecommitdiff
path: root/3802/CH8/EX8.10/Ex8_10.sce
blob: 2615493d1d46b5623de8c0438e208084616505cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//Book Name:Fundamentals of Electrical Engineering
//Author:Rajendra Prasad
//Publisher: PHI Learning Private Limited
//Edition:Third ,2014

//Ex8_10.sce.

clc;
clear;
Ra=0.1;

printf("\n    (a)")
Ia=80;
V=230;
E=V+(Ia*Ra);
printf("\n   The generated emf when running as generator=%3.0f volt \n",E)

printf("\n    (b)")
Ia=60;
V=230;
E=V-(Ia*Ra);
printf("\n   The generated emf when running as motor=%3.0f volt \n",E)