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 --- 1340/DEPENDENCIES/vector.sci | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 1340/DEPENDENCIES/vector.sci (limited to '1340/DEPENDENCIES') diff --git a/1340/DEPENDENCIES/vector.sci b/1340/DEPENDENCIES/vector.sci new file mode 100755 index 000000000..00153f92b --- /dev/null +++ b/1340/DEPENDENCIES/vector.sci @@ -0,0 +1,4 @@ +function [y,angle] = vector(a,b) + y = sqrt((real(a)-real(b))^2+(imag(a)-imag(b))^2); + angle = atan((imag(a)-imag(b)),(real(a)-real(b)))*180/%pi; +endfunction \ No newline at end of file -- cgit