summaryrefslogtreecommitdiff
path: root/3537/CH1/EX1.26/Ex1_26.sce
blob: 267deed4c62cf267d96d88645c1a6a7ca807eea1 (plain)
1
2
3
4
5
6
7
8
//Example 1_26
clc();
clear;
//tofind the amplitude of the resultant wave
pathdifference=1/4         //in terns of lamda
phasedifference=(2*%pi)*pathdifference    //In terms of lamda
amplitude=2*cos(phasedifference/2)   //in terms of a
printf("Amplitude A=%.3f*a",amplitude)