summaryrefslogtreecommitdiff
path: root/3648/CH7/EX7.1/Ex7_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3648/CH7/EX7.1/Ex7_1.sce')
-rw-r--r--3648/CH7/EX7.1/Ex7_1.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/3648/CH7/EX7.1/Ex7_1.sce b/3648/CH7/EX7.1/Ex7_1.sce
new file mode 100644
index 000000000..7d835c953
--- /dev/null
+++ b/3648/CH7/EX7.1/Ex7_1.sce
@@ -0,0 +1,10 @@
+//Example 7_1
+clc();
+clear;
+//To convert angles to radians and revolutions
+theta=70 //units in degrees
+deg=360 //units in degrees
+rad=theta*2*%pi/deg //units in radians
+rev=1 //units in revolution
+rev=theta*rev/deg //units in revolution
+printf("70 degrees in radians is %.2f radians \n 70 degrees in revolutions it is %.3f revolutions",rad,rev)