summaryrefslogtreecommitdiff
path: root/2882/CH1/EX1.11/Ex1_11.sce
blob: fadc1342f20695b1dfbff03e22949a3ffd0f1ecb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Tested on Windows 7 Ultimate 32-bit
//Chapter 1 Introduction to Electronics Pg no. 33
//Solved Problem 4
clear;
clc;

//Given Data

R=10;//resistance in ohms
P=4;//power in watts

//Solution

I=sqrt(P/R);//current in amperes

printf("Maximum safe current is I=%.3f Amperes.",I);//Displaying upto 3 places of decimal