summaryrefslogtreecommitdiff
path: root/2863/CH4/EX4.3/ex4_3.sce
blob: 0a71a8fab1fc2ba557e56e66ac0707f9dd022615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//chapter 4
//2 element array
//part a
printf("\n");
max1=acos(0);
max2=acos(1);
max3=acos(-1);
printf("the positions of maxima are %g,%d,%g radians",max1,max2,max3);
//part b
//minima
min1=acos(0.5);
min2=acos(0.5);
printf("\nthe positions of minima are %g,%g radians",min1,min2);