From 69fad3033294f2fe311a8ca4ccc1cd581c394bc4 Mon Sep 17 00:00:00 2001 From: Alvaro Sanchez Date: Thu, 26 Sep 2013 16:17:25 +0200 Subject: [PATCH 1/3] nth_root script --- scripts/nth_root.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 scripts/nth_root.py diff --git a/scripts/nth_root.py b/scripts/nth_root.py new file mode 100644 index 0000000..9ffce3f --- /dev/null +++ b/scripts/nth_root.py @@ -0,0 +1,10 @@ +print "Welcome to the nth root calculator" + +radicand = raw_input("Enter radicand: ") +print "you entered ", radicand + +index = raw_input("Enter index: ") +print "you entered ", index + +nroot = float(radicand)**(1.0/float(index)) +print "result: ", nroot From ef48136e03c8659259975c7dd2db18e84cc78fb9 Mon Sep 17 00:00:00 2001 From: Alvaro Sanchez Date: Thu, 26 Sep 2013 16:27:07 +0200 Subject: [PATCH 2/3] nth_root script minor tweaks --- scripts/nth_root.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/nth_root.py b/scripts/nth_root.py index 9ffce3f..5e4ccc2 100644 --- a/scripts/nth_root.py +++ b/scripts/nth_root.py @@ -1,10 +1,7 @@ print "Welcome to the nth root calculator" radicand = raw_input("Enter radicand: ") -print "you entered ", radicand - index = raw_input("Enter index: ") -print "you entered ", index nroot = float(radicand)**(1.0/float(index)) print "result: ", nroot From 9965e32797076f4c3ce3bb72b1c2fa308f87331d Mon Sep 17 00:00:00 2001 From: Alvaro Sanchez Date: Thu, 26 Sep 2013 16:41:24 +0200 Subject: [PATCH 3/3] nth_root script more minor tweaks --- scripts/nth_root.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/nth_root.py b/scripts/nth_root.py index 5e4ccc2..f5296f8 100644 --- a/scripts/nth_root.py +++ b/scripts/nth_root.py @@ -1,3 +1,5 @@ +#authors: Alvaro Aguilar & Alvaro Sanchez + print "Welcome to the nth root calculator" radicand = raw_input("Enter radicand: ")