summaryrefslogtreecommitdiff
path: root/27/DEPENDENCIES
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /27/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 '27/DEPENDENCIES')
-rwxr-xr-x27/DEPENDENCIES/circle.sci15
1 files changed, 15 insertions, 0 deletions
diff --git a/27/DEPENDENCIES/circle.sci b/27/DEPENDENCIES/circle.sci
new file mode 100755
index 000000000..7648e8fb0
--- /dev/null
+++ b/27/DEPENDENCIES/circle.sci
@@ -0,0 +1,15 @@
+function [] = circle(centre,radius,NOP)
+
+ THETA=linspace(0,2*%pi,NOP);
+ RHO=ones(1,NOP)*radius;
+ z=tan(THETA);
+ x=sqrt(((RHO).^2)./(1+(z.^2)));
+ y=x.*z;
+ x=x+centre(1);
+ y=y+centre(2);
+ plot2d(x,y,style=-2);
+ set(gca(),"auto_clear","off") //hold on
+ plot2d(-(x)+2*(centre(1)),y,style=-2);
+
+
+/////////////// End of Function circle \ No newline at end of file