summaryrefslogtreecommitdiff
path: root/3637/CH2/EX2.23/Ex2_23.sce
diff options
context:
space:
mode:
Diffstat (limited to '3637/CH2/EX2.23/Ex2_23.sce')
-rw-r--r--3637/CH2/EX2.23/Ex2_23.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3637/CH2/EX2.23/Ex2_23.sce b/3637/CH2/EX2.23/Ex2_23.sce
new file mode 100644
index 000000000..90a1b8a72
--- /dev/null
+++ b/3637/CH2/EX2.23/Ex2_23.sce
@@ -0,0 +1,11 @@
+//problem 23 paenumber 2.106
+//given
+vi=[10e-3,100e-3,1];format(6);
+r1=10e3;//ohm
+i1=1e-13;//A
+//determine output voltage
+w=1;
+while w<=3
+ disp('Output voltage for vi '+string(vi(w))+' = '+string(((-0.02571)*(log(vi(w)/(i1*r1))))*10^3)+' mV');//error in book
+ w=w+1;
+ end