summaryrefslogtreecommitdiff
path: root/3809/CH2/EX2.2/EX2_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH2/EX2.2/EX2_2.sce')
-rw-r--r--3809/CH2/EX2.2/EX2_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3809/CH2/EX2.2/EX2_2.sce b/3809/CH2/EX2.2/EX2_2.sce
new file mode 100644
index 000000000..926e7ebef
--- /dev/null
+++ b/3809/CH2/EX2.2/EX2_2.sce
@@ -0,0 +1,14 @@
+//Chapter 2, Example 2.2
+clc
+//Initialisation
+t=50*10^-3 //time period in sec, from graph
+v1=10 //position peak voltage, from graph
+pi=3.14
+
+//Calculation
+f=1/t //frequency in hertz
+w=2*pi*f //angular velocity
+
+//Result
+printf("Equation of Voltage signal is, \n")
+printf("v = %d sin %d t",v1,round(w))