summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazMalhotra2020-02-08 11:32:53 -0800
committerKazMalhotra2020-02-08 11:32:53 -0800
commitf9305b95c746697657acbc4c0eef9848d8d3a28b (patch)
treee6afa877162d7ee1d2b1a286dce720717035d1e7
parent2f20f9b02b02560cc66211b9daf21cdc6266e5f8 (diff)
downloadaur-f9305b95c746697657acbc4c0eef9848d8d3a28b.tar.gz
update stuff
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD2
-rwxr-xr-xcitardauq21
-rwxr-xr-x[-rw-r--r--]citardauq.py1
4 files changed, 25 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 733fe870bdd..ecbc3c3a615 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,7 +6,8 @@ pkgbase = citardauq
arch = any
license = MIT
depends = python
- source = citardauq.py
+ source = citardauq
md5sums = b6dfdfb3d79c0709e1154e9f55695726
pkgname = citardauq
+
diff --git a/PKGBUILD b/PKGBUILD
index ad8987489c8..855887167cb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,6 +8,6 @@ arch=('any')
url='https://aur.archlinux.org/packages/citardauq/'
license=('MIT')
depends=('python')
-source=("citardauq.py")
+source=("citardauq")
md5sums=('92b48b83f0e6d60f103c2bc6d1184712')
md5sums=('b6dfdfb3d79c0709e1154e9f55695726')
diff --git a/citardauq b/citardauq
new file mode 100755
index 00000000000..428b92f006b
--- /dev/null
+++ b/citardauq
@@ -0,0 +1,21 @@
+#!/usr/bin/python
+import cmath, sys
+
+if len(sys.argv) != 4:
+ print("Please enter a, b, and c as arguments.")
+
+
+else:
+
+ a = float(sys.argv[1])
+ b = float(sys.argv[2])
+ c = float(sys.argv[3])
+
+ print('a is', a, 'b is', b, 'c is', c)
+
+ d = (b ** 2) - (4 * a * c)
+
+ sol0 = (-b - cmath.sqrt(d)) / (2*a)
+ sol1 = (-b + cmath.sqrt(d)) / (2*a)
+
+ print("X could be", sol0, "or", sol1)
diff --git a/citardauq.py b/citardauq.py
index dbb9c70db84..428b92f006b 100644..100755
--- a/citardauq.py
+++ b/citardauq.py
@@ -1,3 +1,4 @@
+#!/usr/bin/python
import cmath, sys
if len(sys.argv) != 4: