Skip to content

Commit 9fbbf77

Browse files
Update Basic_Maths
1 parent e522e4f commit 9fbbf77

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

Basic_Maths.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77

88
global result
99

10+
PYTHON_LIB_NAME="Basic_Maths"
1011
PYTHON_LIB_LICENCE="GPL2"
11-
PYTHON_LIB_VER="2.0"
12+
PYTHON_LIB_VER="2.1"
1213
PYTHON_LIB_AUTHOR="LinuxUsersLinuxMint"
1314

15+
# Math functions
16+
1417
def addition(x,y,ResultDialog):
1518
x=x
1619
y=y
@@ -57,4 +60,19 @@ def TakingRoots(x,y,ResultDialog):
5760
def SqaureRoot(x,ResultDialog):
5861
x=x
5962
result=x ** (1/2)
60-
print("{0} {1} ** (1/2) = {2}". format(ResultDialog,x,result))
63+
print("{0} {1} ** (1/2) = {2}". format(ResultDialog,x,result))
64+
65+
66+
# Library functions
67+
68+
def LibAbout():
69+
print("Python Library Name: {0}", format(PYTHON_LIB_NAME))
70+
print("Python Library Version: {0}\n", format(PYTHON_LIB_VER))
71+
print("Python Library Licence Name: {0}\n", format(PYTHON_LIB_LICENCE))
72+
print("Python Library Author Name: {0}\n", format(PYTHON_LIB_AUTHOR))
73+
74+
# TR (Türkçe):
75+
# NOT: "Kütüphane fonksiyonları" başlığı altındaki fonksiyonlar kullanımı isteğe bağlıdır ancak "Basic_Maths" kütüphanesini kullanan bir "Python" yazılımında kullanıcıya kullanılan kütüphane hakkında bilgi vermek amacıyla kullanılabilir.
76+
77+
# EN (English):
78+
# NOTE: The functions under the "Library functions" heading are optional, but can be used in a "Python" software that uses the "Basic_Maths" library to provide information to the user about the library used.

0 commit comments

Comments
 (0)