From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2915/CH8/EX8.1/8_1.JPG | Bin 0 -> 21217 bytes 2915/CH8/EX8.1/Ex8_1.sce | 16 ++++++++++++++++ 2915/CH8/EX8.1/plot8_1.jpeg | Bin 0 -> 61425 bytes 3 files changed, 16 insertions(+) create mode 100755 2915/CH8/EX8.1/8_1.JPG create mode 100755 2915/CH8/EX8.1/Ex8_1.sce create mode 100755 2915/CH8/EX8.1/plot8_1.jpeg (limited to '2915/CH8/EX8.1') diff --git a/2915/CH8/EX8.1/8_1.JPG b/2915/CH8/EX8.1/8_1.JPG new file mode 100755 index 000000000..afd8761a1 Binary files /dev/null and b/2915/CH8/EX8.1/8_1.JPG differ diff --git a/2915/CH8/EX8.1/Ex8_1.sce b/2915/CH8/EX8.1/Ex8_1.sce new file mode 100755 index 000000000..a54ad78e9 --- /dev/null +++ b/2915/CH8/EX8.1/Ex8_1.sce @@ -0,0 +1,16 @@ +//Example 8.1 +//To plot the function of sin(x) +clear,clc; + +x = linspace(-0,2*%pi,50); +y = sin(x) ; + +//For grid, uncomment below line +//set(gca(),"grid",[5 5]); + +printf('NOTE:\nTo enable the grid , check the code') +plot(x,y,'r'); +xlabel("$0\le x\le 2*pi$","fontsize",4,"color","red"); +ylabel("$y(x)=sin(x)$","fontsize",4,"color","red"); +title("Example 8.1","color","blue","fontsize",9); +legend("sin(x)"); diff --git a/2915/CH8/EX8.1/plot8_1.jpeg b/2915/CH8/EX8.1/plot8_1.jpeg new file mode 100755 index 000000000..b5c5fd5cd Binary files /dev/null and b/2915/CH8/EX8.1/plot8_1.jpeg differ -- cgit