diff options
Diffstat (limited to '3809/CH16/EX16.1/EX16_1.sce')
-rw-r--r-- | 3809/CH16/EX16.1/EX16_1.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3809/CH16/EX16.1/EX16_1.sce b/3809/CH16/EX16.1/EX16_1.sce new file mode 100644 index 000000000..a61e0ec1e --- /dev/null +++ b/3809/CH16/EX16.1/EX16_1.sce @@ -0,0 +1,16 @@ +//Chapter 16, Example 16.1 + +clc +//Initialisation +e=5 //emf i volt +r=1000 //resistance in ohm + + +//Calculation +i=e/r //current in amp +v=0.75 //voltage across diode from graph shown + +//Results +printf("Current = %d mA\n",i*1000) +printf("Voltage = %.2f V",v) + |