From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3640/DEPENDENCIES/complexstring.sci | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 3640/DEPENDENCIES/complexstring.sci (limited to '3640/DEPENDENCIES/complexstring.sci') diff --git a/3640/DEPENDENCIES/complexstring.sci b/3640/DEPENDENCIES/complexstring.sci new file mode 100644 index 000000000..c4b473efb --- /dev/null +++ b/3640/DEPENDENCIES/complexstring.sci @@ -0,0 +1,11 @@ +function s=complexstring(a) + + + if imag(a)>=0 then + s=sprintf('%g+%gi',real(a),imag(a)) + else + s=sprintf('%g%gi',real(a),imag(a)) + + end + funcprot(0) +endfunction -- cgit