summaryrefslogtreecommitdiff
path: root/3809/CH2/EX2.3/EX2_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH2/EX2.3/EX2_3.sce')
-rw-r--r--3809/CH2/EX2.3/EX2_3.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3809/CH2/EX2.3/EX2_3.sce b/3809/CH2/EX2.3/EX2_3.sce
new file mode 100644
index 000000000..837e39491
--- /dev/null
+++ b/3809/CH2/EX2.3/EX2_3.sce
@@ -0,0 +1,15 @@
+//Chapter 2, Example 2.3
+clc
+//Initialisation
+vp=10 //voltage
+f=10 //frequency in hertz
+pi=3.14 //pi
+phi=90 //phase angle
+
+//Calculation
+w=2*pi*f //angular frequency
+
+
+
+//Results
+printf("%d sin( %d t - %d)",vp,round(w),phi)