diff options
Diffstat (limited to '656/CH2/EX2.1/example2_1.sce')
-rw-r--r-- | 656/CH2/EX2.1/example2_1.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/656/CH2/EX2.1/example2_1.sce b/656/CH2/EX2.1/example2_1.sce new file mode 100644 index 000000000..e2a363f32 --- /dev/null +++ b/656/CH2/EX2.1/example2_1.sce @@ -0,0 +1,11 @@ +// current is 2A
+//120V
+i=2;
+v=120;
+// v=I*R where R is the resistance in Ohms
+r=v/i;
+disp("r=")
+disp(r)
+units='Ohms'
+r=[string(r) units];
+disp(r)
|