summaryrefslogtreecommitdiff
path: root/61/DEPENDENCIES
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /61/DEPENDENCIES
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '61/DEPENDENCIES')
-rwxr-xr-x61/DEPENDENCIES/gain_in_decibel_power.sci3
-rwxr-xr-x61/DEPENDENCIES/gain_in_decibel_voltage.sci3
-rwxr-xr-x61/DEPENDENCIES/open_loop_gain.sci3
-rwxr-xr-x61/DEPENDENCIES/phase_shift.sci4
-rwxr-xr-x61/DEPENDENCIES/value_of_I_D.sci4
-rwxr-xr-x61/DEPENDENCIES/value_of_K.sci4
6 files changed, 21 insertions, 0 deletions
diff --git a/61/DEPENDENCIES/gain_in_decibel_power.sci b/61/DEPENDENCIES/gain_in_decibel_power.sci
new file mode 100755
index 000000000..7e229817c
--- /dev/null
+++ b/61/DEPENDENCIES/gain_in_decibel_power.sci
@@ -0,0 +1,3 @@
+function A_p_dB=gain_in_decibel_power(A_p)
+ A_p_dB=10*log10(A_p)
+endfunction \ No newline at end of file
diff --git a/61/DEPENDENCIES/gain_in_decibel_voltage.sci b/61/DEPENDENCIES/gain_in_decibel_voltage.sci
new file mode 100755
index 000000000..80f71b3bf
--- /dev/null
+++ b/61/DEPENDENCIES/gain_in_decibel_voltage.sci
@@ -0,0 +1,3 @@
+function A_v_dB=gain_in_decibel_voltage(A_v)
+ A_v_dB=20*log10(A_v)
+endfunction \ No newline at end of file
diff --git a/61/DEPENDENCIES/open_loop_gain.sci b/61/DEPENDENCIES/open_loop_gain.sci
new file mode 100755
index 000000000..30829b639
--- /dev/null
+++ b/61/DEPENDENCIES/open_loop_gain.sci
@@ -0,0 +1,3 @@
+function A_ol=open_loop_gain(A_ol_mid,f,f_c_ol)
+ A_ol=A_ol_mid/(sqrt(1+(f/f_c_ol)^2))
+endfunction \ No newline at end of file
diff --git a/61/DEPENDENCIES/phase_shift.sci b/61/DEPENDENCIES/phase_shift.sci
new file mode 100755
index 000000000..3c9a653cb
--- /dev/null
+++ b/61/DEPENDENCIES/phase_shift.sci
@@ -0,0 +1,4 @@
+function theta=phase_shift(f,f_c)
+ theta_rad=-atan((f/f_c))
+ theta=theta_rad*180/%pi;
+endfunction \ No newline at end of file
diff --git a/61/DEPENDENCIES/value_of_I_D.sci b/61/DEPENDENCIES/value_of_I_D.sci
new file mode 100755
index 000000000..622186ffe
--- /dev/null
+++ b/61/DEPENDENCIES/value_of_I_D.sci
@@ -0,0 +1,4 @@
+//value of I_D
+function [i_d]= value_of_I_D(I_DSS,V_GS,V_GS_off)
+ i_d=I_DSS*(1-(V_GS/V_GS_off))^2;
+endfunction \ No newline at end of file
diff --git a/61/DEPENDENCIES/value_of_K.sci b/61/DEPENDENCIES/value_of_K.sci
new file mode 100755
index 000000000..200c4db02
--- /dev/null
+++ b/61/DEPENDENCIES/value_of_K.sci
@@ -0,0 +1,4 @@
+//VALUE OF K
+function [k]=value_of_K(I_D_on,V_GS,V_GS_th)
+ k=I_D_on/((V_GS-V_GS_th)^2)
+endfunction \ No newline at end of file