summaryrefslogtreecommitdiff
path: root/716/CH2/EX2.13.d/Solved_Ex2_13d.sce
diff options
context:
space:
mode:
Diffstat (limited to '716/CH2/EX2.13.d/Solved_Ex2_13d.sce')
-rwxr-xr-x716/CH2/EX2.13.d/Solved_Ex2_13d.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/716/CH2/EX2.13.d/Solved_Ex2_13d.sce b/716/CH2/EX2.13.d/Solved_Ex2_13d.sce
new file mode 100755
index 000000000..90f24052a
--- /dev/null
+++ b/716/CH2/EX2.13.d/Solved_Ex2_13d.sce
@@ -0,0 +1,14 @@
+//Test the Given systems for linearity,y(t)=Ax(t)+B
+clc;
+clear;
+function x=f1(t),x=t; ,endfunction//x function of t
+function y=f(t,x), y=5*x+2; ,endfunction//y function of x and t
+t=-5:0.1:5;
+x1=f1(t);
+x2=f1(t);
+x3=x1+x2;
+if f(t,x3)==(f(t,x1)+f(t,x2));
+ disp('system is linear');
+ else
+ disp('system is non linear');
+end