You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Series/Geometric.py
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
# Geometric.py
2
-
""" Geometric takes the first number a_1, the q and the number of elements Num, and returns a list containing "Num" numbers in the Geometric series.
3
-
Pre-Conditions - a_1 should be an Number.
4
-
- q should be an Number.
2
+
""" Geometric takes the first number firstElem, the ratio and the number of elements Num, and returns a list containing "Num" numbers in the Geometric series.
3
+
Pre-Conditions - firstElem should be an Number.
4
+
- ratio should be an Number.
5
5
- Num should be an integer >=1.
6
6
7
-
Geometric(a_1=7,q = 9,Num = 5) --> Standard function call
7
+
Geometric(firstElem=7,ratio = 9,Num = 5) --> Standard function call
8
8
9
-
Output --> Num numbers are returned in series starting from a_1 with geometric value q
9
+
Output --> Num numbers are returned in series starting from firstElem with geometric value ratio
0 commit comments