summaryrefslogtreecommitdiff
path: root/Tutorial4_ODE
diff options
context:
space:
mode:
authorP Sunthar2018-10-02 00:09:14 +0530
committerP Sunthar2018-10-02 00:09:14 +0530
commit6d39446c434cfcca02ae7a4551e2d66edf9def7f (patch)
treef0e84e8fadd28600bfdeadf1471d59be5eaee54a /Tutorial4_ODE
parent4d0d95e5748137abe4636dc734b03b4e7ccfd6f5 (diff)
downloadscilab-tutorials-6d39446c434cfcca02ae7a4551e2d66edf9def7f.tar.gz
scilab-tutorials-6d39446c434cfcca02ae7a4551e2d66edf9def7f.tar.bz2
scilab-tutorials-6d39446c434cfcca02ae7a4551e2d66edf9def7f.zip
Renamed dirs
Diffstat (limited to 'Tutorial4_ODE')
-rw-r--r--Tutorial4_ODE/Problems/README.md1
-rw-r--r--Tutorial4_ODE/Problems/Tut4.pdfbin50507 -> 0 bytes
-rw-r--r--Tutorial4_ODE/README.md1
-rw-r--r--Tutorial4_ODE/Scilab_code/README.md1
-rw-r--r--Tutorial4_ODE/Scilab_code/Tutorial4_ode_matrix.sce21
-rw-r--r--Tutorial4_ODE/Scilab_code/Tutorial4_ode_simple.sce21
-rw-r--r--Tutorial4_ODE/Scilab_code/Tutorial4_ode_simple_plot.sce26
7 files changed, 0 insertions, 71 deletions
diff --git a/Tutorial4_ODE/Problems/README.md b/Tutorial4_ODE/Problems/README.md
deleted file mode 100644
index 5ccbfe0..0000000
--- a/Tutorial4_ODE/Problems/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# Problems for ODE
diff --git a/Tutorial4_ODE/Problems/Tut4.pdf b/Tutorial4_ODE/Problems/Tut4.pdf
deleted file mode 100644
index 2ad3662..0000000
--- a/Tutorial4_ODE/Problems/Tut4.pdf
+++ /dev/null
Binary files differ
diff --git a/Tutorial4_ODE/README.md b/Tutorial4_ODE/README.md
deleted file mode 100644
index 841c27b..0000000
--- a/Tutorial4_ODE/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# Ordinary differential equation
diff --git a/Tutorial4_ODE/Scilab_code/README.md b/Tutorial4_ODE/Scilab_code/README.md
deleted file mode 100644
index 78de9d2..0000000
--- a/Tutorial4_ODE/Scilab_code/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# Scilab code for ODE
diff --git a/Tutorial4_ODE/Scilab_code/Tutorial4_ode_matrix.sce b/Tutorial4_ODE/Scilab_code/Tutorial4_ode_matrix.sce
deleted file mode 100644
index 33e5e33..0000000
--- a/Tutorial4_ODE/Scilab_code/Tutorial4_ode_matrix.sce
+++ /dev/null
@@ -1,21 +0,0 @@
-//This script demonstrates the use of ODE solver when matrix is involved
-clear
-clc
-
-//Definition of the function
-function ydot = func(t,y)
- ydot = A*y + ones(3,1);
-endfunction
-
-//Defining the matrix
-A = [1 2 1;9 6 1;1 3 4];
-//Initial condition
-y0 = [-1;2;3];
-//Start time
-t0= 0;
-//The time at which the solution is computed
-t = 0.2;
-//Calling the ode solver
-sol=ode(y0,t0,t,func);
-//Displaying the solution
-disp(sol,"y(t) at t = 0.2");
diff --git a/Tutorial4_ODE/Scilab_code/Tutorial4_ode_simple.sce b/Tutorial4_ODE/Scilab_code/Tutorial4_ode_simple.sce
deleted file mode 100644
index 66431a4..0000000
--- a/Tutorial4_ODE/Scilab_code/Tutorial4_ode_simple.sce
+++ /dev/null
@@ -1,21 +0,0 @@
-//This script demonstrates the use of ODE solver
-clear
-clc
-
-//Definition the function.
-//The function is dy/dt = cos(t)*sin(t) - tan(t) + 1
-function ydot = func(t,y)
- ydot = t^2*exp(-2*t) + y
-endfunction
-
-//Initial condition of the problem, a scalar or vector
-y0 = -1;
-//Initial time, a real scalar
-t0= 0;
-//The time at which the solution is computed
-t = 0.2;
-//Calling the ode solver
-sol=ode(y0,t0,t,func);
-//Displaying the solution
-disp(sol,"y(t) at t = 0.2");
-
diff --git a/Tutorial4_ODE/Scilab_code/Tutorial4_ode_simple_plot.sce b/Tutorial4_ODE/Scilab_code/Tutorial4_ode_simple_plot.sce
deleted file mode 100644
index f2df913..0000000
--- a/Tutorial4_ODE/Scilab_code/Tutorial4_ode_simple_plot.sce
+++ /dev/null
@@ -1,26 +0,0 @@
-//This script demonstrates the use of ODE solver and computing the
-//solution at different times. The output is in the form of a plot
-//of time versus computed solution
-clear
-clc
-
-//Definition the function.
-function ydot = func(t,y)
- ydot = t^2*exp(-2*t) + y
-endfunction
-
-//Initial condition
-y0 = -1;
-//Start time
-t0= 0;
-
-//The array of time where the solution is computed
-tf = 4:0.01:10;
-
-//Calling the ODE solver
-sol=ode(y0,t0,tf,func);
-
-
-//Plotting the result
-plot(tf,sol,'Linewidth',3)
-xtitle('Dynamics of y','Time','y(t)')