summaryrefslogtreecommitdiff
path: root/3836/CH11/EX11.2/Ex11_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3836/CH11/EX11.2/Ex11_2.sce')
-rw-r--r--3836/CH11/EX11.2/Ex11_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3836/CH11/EX11.2/Ex11_2.sce b/3836/CH11/EX11.2/Ex11_2.sce
new file mode 100644
index 000000000..befaa80fa
--- /dev/null
+++ b/3836/CH11/EX11.2/Ex11_2.sce
@@ -0,0 +1,14 @@
+clear
+//
+//Initialisation
+t=0.05 //time period in seconds from diagram
+v1=10 //peak voltage from diagram
+
+
+//Calculation
+f1=1*t**-1 //frequency in Hz
+w1=2*%pi*f1 //Angular velocity
+
+//Result
+printf("\n %d sin %.1ft Hz\n",v1,w1)
+