Ankita Saini has Published 319 Articles

Swift Program to print the absolute value of Complex numbers

Ankita Saini

Ankita Saini

Updated on 09-Jan-2023 15:15:58

145 Views

In this article, we will learn how to write a swift program to print the absolute value of complex numbers. Complex numbers are those numbers which express in the form of x+yi, where x and y are real numbers and ‘i’ is an imaginary number known as iota. For example ... Read More

Swift Program to Print Matrix numbers containing in Z form

Ankita Saini

Ankita Saini

Updated on 09-Jan-2023 15:13:54

76 Views

In this article, we will learn how to write a swift program to print a matrix in Z form. Here we traverse through the first row then the secondary diagonal and then the last row of the matrix to print the z form. For example, 4x4 Matrix − $\mathrm{\begin{bmatrix}4 & ... Read More

Swift program to Print an Identity Matrix

Ankita Saini

Ankita Saini

Updated on 09-Jan-2023 15:11:52

121 Views

In this article, we will learn how to write a swift program to print an identity matrix. Identity matrix is a square matrix in which the main diagonal elements contain only one and the rest of the elements are 0. For example − $\mathrm{Matrix\:=\:\begin{bmatrix}1 & 0 & 0 & 0 ... Read More

Swift Program to Multiply two Matrices by Passing Matrix to a Function

Ankita Saini

Ankita Saini

Updated on 09-Jan-2023 15:07:43

157 Views

In this article, we will learn how to write a swift program to multiply two matrices by passing the matrix to a function. A matrix is a mathematical structure in which the elements are present in rows and columns format. For example, the first element is present at the a00 ... Read More

Swift Program to Multiply two Matrices Using Multi-dimensional Arrays

Ankita Saini

Ankita Saini

Updated on 09-Jan-2023 15:06:24

552 Views

In this article, we will learn how to write a swift program to multiply two matrices using multi-dimensional arrays. A matrix is a mathematical structure in which the elements are present in rows and columns format. For example, the first element is present at the a00 location, the second ... Read More

Swift Program to initialize and print a complex number

Ankita Saini

Ankita Saini

Updated on 09-Jan-2023 14:53:57

178 Views

In this article, we will learn how to write a swift program to initialize and print complex numbers. Complex numbers are those numbers which express in the form of x+yi, where x and y are real numbers and ‘i’ is an imaginary number known as iota. Alternatively, we can say ... Read More

Swift Program to get the real part from a Complex number

Ankita Saini

Ankita Saini

Updated on 09-Jan-2023 14:51:57

90 Views

In this article, we will learn how to write a swift program to get the real part from the complex number. Complex numbers are those numbers which express in the form of x+yi, where x and y are real numbers and ‘i’ is an imaginary number known as iota. For ... Read More

Swift Program to get the numerator from a rational number

Ankita Saini

Ankita Saini

Updated on 09-Jan-2023 14:50:41

102 Views

In this article, we will learn how to write a swift program to get the numerator from a rational number. A rational number is a number which represents in the form of n/m where m is not equal to zero. Here n is known as the numerator and m is ... Read More

Swift Program to get the imaginary part of the given complex number

Ankita Saini

Ankita Saini

Updated on 09-Jan-2023 14:48:54

83 Views

In this article, we will learn how to write a swift program to get the imaginary part of the given complex number. Complex numbers are those number which express in the form of x+yi, where x and y are real numbers and ‘i’ is an imaginary number known as iota. ... Read More

Swift Program to get the denominator from a rational number

Ankita Saini

Ankita Saini

Updated on 09-Jan-2023 14:46:37

207 Views

In this article, we will learn how to write a swift program to get the denominator from the rational number. A rational number is a number, which represents in the form of n/m where m is not equal to zero. Here n is known as the numerator and m is ... Read More

Advertisements