1. Introduction:
According to the continuing need to develop, extending sets of numbers is improved over time. Starting with natural numbers N, integers Z, rational Q then real numbers R which was first discovered by German Mathematician Julius Wilhelm Richard Dedekind.[2] After that, the novel of the generalization of real numbers is told us by several sets, like:
- Complex number 𝑪 = {𝒙 + j 𝒚; j 𝟐 = −𝟏, 𝒙, 𝒚 ∈ 𝑹}
- Dual numbers 𝑫 = {𝒙 + 𝒚𝒋; 𝒋𝟐 = 𝟎, 𝒙, 𝒚 ∈ 𝑹}
- Split- complex numbers 𝑺 = {𝒙 + 𝒚𝒋; 𝒋𝟐 = 𝟏, 𝒙, 𝒚 ∈ 𝑹}.
We mention that weak fuzzy complex numbers and split-complex numbers were used on a wide range in the study of vector spaces, Diophantine equations, and matrices, see [4-7].
In parallel, computer programming plays an important role in providing us with the most ideal options for accomplishing tasks, especially with enormous calculations on those sets. Somehow, the above-defined sets were used in many programming languages before [3].
Noteworthy, Python is one of the most high-level programming languages. It supports three numeric types to represent numbers: integers(int), float(float), and complex(complex) numbers. More precisely, ready complex functions are using the module math and useful tools to handle and manipulate them. For example, Python converts the real numbers x and y into complex using the function complex(x,y). The real part can be accessed using the function real () and the imaginary part can be represented by image (). This tuple (real, imag) seems the same for numbers in Dual and split-complex sets and for numbers in the following set too.
At the beginning of this year 2023, a new set of numbers was defined as follows:
- 𝐹j = {𝑎 + 𝑏j ; 𝑎, 𝑏 ∈ 𝑅 , t= j 𝟐 ∈ ]𝟎, 𝟏[} , the set of weak fuzzy complex numbers, where ‘j’ is the weak fuzzy complex operator (j ∉𝑹) [1]. We will mention its properties in section 2.
Nevertheless, the numbers in C, D, R, and Fj represent tuples (x,y) similarly, the value of the operator ‘j’ is different between them x+yj. So we can determine the kind of number by defining its operator like in our implementation check_operator( ). We will call the operator ‘k’ to avoid confusion with ‘j’ which is known as the complex operator in Python.
In section 3, we will define the numbers of set 𝐹k and their operations by the class WFCNumber and its functions. Also, we will add some examples.
Properties of the weak fuzzy complex numbers:[1]
Let 𝑥 = 𝑎 + 𝑏k, y = c + dk ∈ 𝐹k, Addition: 𝑥 + y = (𝑎 + 𝑐) + (𝑏 + 𝑑) k. Multiplication 𝑥. y = (𝑎 + 𝑏k). (𝑐 + 𝑑k) = (𝑎𝑐 + 𝑏𝑑𝑡) + (𝑎𝑑 + 𝑏𝑐) k. The conjugate of 𝑥 is: 𝑥̅ = 𝑎 − 𝑏k The norm of 𝑥 is defined as follows: ||𝑥|| = √|𝑥. 𝑥̅|= √|𝑎2 − 𝑏2𝑡|.
𝑥 is invertible if and only if 𝑡 ≠
1. The implementation:
In our work, we have checked the type of operator ‘k’ by the function check_operator( ). The plan below shows the process.
Also, the primary computing on weak fuzzy complex numbers is done by class WFCNumber.
Implementation for checking the operator ‘k’:
To distinguish the operator ‘k’(complex, dual, split-complex, or weak fuzzy complex), the function check_operator( ) does the task where t=k2.
import math import cmath import pandas as pd def check_operator (t):
I=pd.Interval (left=0.0, right=1.0, closed='neither') if t in I:
k=math.sqrt(t) print( "k=" , k) print("k is a weak fuzzy complex operator") print("Enter the related weak fuzzy complex numbers like: name_number= WFCNumber (real,imag,t)") elif t==-1:
k=cmath.sqrt(t) print( "k=" , k) print("k is the complex imaginary operator") elif t==0:
k=math.sqrt(t) print("k=" , k) print( "k is the dual imaginary operator" ) elif t==1:
k=math.sqrt(t) print( "k=" , k) print("k is the split-complex imaginary operator") else: print("k is not a complex imaginary operator nor split nor fuzzy") return
numbers by WFCNumber( ) chec k_op erat or( ) func tion
3.2 The main definition and operations Implementation :
Inside the body of class WFCNumber( ), we have defined fuzzy complex numbers as triple (real part, imaginary part, k2).
Our class includes the following functions:
class WFCNumber:
def __init__(self, real, imag, t):
self.real = real self.imag = imag self.t = t def __repr__(self):
return "{}{:+}k".format(self.real, self.imag, self.t) def __add__(self, other):
real = self.real + other.real imag = self.real + other.imag return WFCNumber(real, imag, self.t) def __sub__(self, other):
real = self.real - other.real imag = self.real - other.imag return WFCNumber(real, imag, self.t) def __mul__(self, other):
real = self.real * other.real + (self.imag * other.imag* self.t) imag = self.real * other.imag + self.imag * other.real return WFCNumber(real, imag, self.t) def __truediv__(self, other):
if self.t!=other.real**2/other.imag**2:
denom = other.real**2 - self.t * other.imag**2 real = (self.real * other.real - self.t * self.imag * other.imag) / denom imag = (self.imag * other.real + self.real * other.imag) / denom return WFCNumber(real, imag, self.t) else:
return ' not possible' def __conj__(self):
real = self.real imag = -self.imag return WFCNumber(real, imag, self.t) def __norm__(self):
aa=self.real bb=self.imag tt= self.t return math.sqrt(abs(aa**2 - tt*bb**2)) def __invert__(self):
if self.t!=self.real**2/self.imag**2:
denom = self.real**2 - self.t * self.imag**2 real = self.real / denom imag = -self.imag / denom return WFCNumber(real, imag, self.t) else:
return ' not possible' def the_type (self):
if type(self).__name__=='WFCNumber':
return 'Weak Fuzzy Complex' else:
print(type(self).__name__) return
#Enter numbers(examples) import math
The type of 1+2k is: Weak Fuzzy Complex
5. Conclusion
In this paper, we have used Python and Jupyter Notebook to define the class of weak fuzzy complex numbers for the first time and present functions for their properties such as norm, conjugate, and invertible for each number. And addition, subtraction, multiplication, division for two numbers, and more.
In the future, our objective is to make algorithms to solve linear and quadratic weak fuzzy complex equations. Also, to define weak fuzzy complex matrices in Python.
Reference
[1] Hatip, A., "An Introduction To Weak Fuzzy Complex Numbers ", Galoitica Journal Of Mathematical Structures and Applications, Vol.3, 2023.
[2]Kumbhar, A. and Shinde, A., "REAL NUMBERS AND THEIR INTERESTING PROOFS ",
JBNB: A Multidisciplinary Journal, Vol. 12, 2022.
[3] Gutin, R., "Matrix decompositions over the double numbers", arXiv:2105.08047v2, https://doi.org/10.48550/arXiv.2105.08047, 6 Dec 2021.
[4] Khaldi, A., " A Study On Split-Complex Vector Spaces", Neoma Journal Of Mathematics and Computer Science, 2023.
[5] Ahmad, K., " On Some Split-Complex Diophantine Equations", Neoma Journal Of Mathematics and Computer Science, 2023.
[6] Ali, R., " On The Weak Fuzzy Complex Inner Products On Weak Fuzzy Complex Vector Spaces", Neoma Journal Of Mathematics and Computer Science, 2023.
[7] Hatip, A., "On The Weak Fuzzy Complex Vector Spaces", Galoitica Journal Of Mathematical
Structures And Applications, Vol.3, 2023.