diff options
Diffstat (limited to '2863/CH4/EX4.3/ex4_3.sce')
-rwxr-xr-x | 2863/CH4/EX4.3/ex4_3.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/2863/CH4/EX4.3/ex4_3.sce b/2863/CH4/EX4.3/ex4_3.sce new file mode 100755 index 000000000..0a71a8fab --- /dev/null +++ b/2863/CH4/EX4.3/ex4_3.sce @@ -0,0 +1,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);
+
+
|