summaryrefslogtreecommitdiff
path: root/3556/CH2/EX2.1/Ex2_1.sce
blob: 148dbf6b3307dd75d2c5e7b3cc06ea74b7e8bc6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
clc
// Fundamental of Electric Circuit 
// Charles K. Alexander and  Matthew N.O Sadiku  
// Mc Graw Hill of New York 
// 5th Edition 

// Part 1   :  DC Circuits 
// Chapter 2:  Basic Laws 
// Example 2 - 1

clear; clc; close; 
//
// Given data
v  = 120.00; 
i  =   2.00; 
//
//
// Calculations Resistance  
R = v/i; 
//
// Display the result
disp("Example 2-1 Solution : ");
printf(" \n R  : Resistance = %.3f Ohm ", R);