summaryrefslogtreecommitdiff
path: root/3740/CH1/EX1.2/Ex1_2.sce
blob: d9b21905565430f128f08bde0bbe18fa1d2a9a0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//Optoelectronics - An Introduction, 2nd Edition by J. Wilson and J.F.B. Hawkes
//Example 1.2
//OS=Windows XP sp3
//Scilab version 5.5.2
clc;
clear;

//given 
n=4;//number of sources
//Let 'I' be the intensity of the sources

//Case (1) :
//For coherent sources
mprintf("Maximum irradiance due to superposition of %d coherent sources Imax= %dI",n,n^2);

//Case (2) :
//For incoherent sources
mprintf("\n Maximum irradiance due to superposition of %d incoherent sources Imax= %dI",n,n);