blob: 76d4b160602ced50dc3a9e96c6a88d451f1c9b8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//=============================================================
//Chapter 5 example 29
clc;
clear all;
//variable declaration
V1 = 1000; //potential of vane in volts
//calculations
//v = VA-VB
mprintf("theta 10 S D");
mprintf("\ntheta praportional to Tt praportional to 2*V1*V")
mprintf("\n10 praportional to 2 praportional to 1000");
mprintf("\ndividing above expressions ")
v = (10/25)*(2500/2000);
//result
mprintf("v = %3.2f volt",v);
|