Mr. Satyabrata

Mr. Satyabrata

318 Articles Published

Articles by Mr. Satyabrata

Page 11 of 32

Benefits and Challenges of Blockchain in IoT

Mr. Satyabrata
Mr. Satyabrata
Updated on 15-May-2023 793 Views

Blockchain is a new advancement in the case of a highly secure transaction. This advancement is based on distributed ledger technology. If you want very secure, tamper-proof transactions without a central authority then this is it. If we talk about the Internet of Things or IoT, this technique refers to the network of various devices & other physical objects. They are connected through the Internet & communicate with each other. The combination of blockchain & IoT can provide numerous benefits, such as enhanced security, transparency, and accountability. Also have many challenges. In this article, we will discuss more about benefits ...

Read More

How to Know whether a Line Touches, Intersects or Lie Outside a Circle in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 04-May-2023 619 Views

A circle is a closed shape formed by tracing a point that moves in a plane such that its distance from a given point is constant. A line is a straight one-dimensional figure that does not have a thickness, and it extends endlessly in both directions. In this article we will check if a given line touches a circle or intersects it using java. We will be given with the centre coordinates and radius of a circle along with equation of the line. We need to check if the given line collides with the circle or not and hence three ...

Read More

How to Know If Two Convex Regular Polygons have Same Centre or Not in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 04-May-2023 197 Views

A polygon is a 2-dimensional closed shape that has at least 3 sides. Depending on the number of sides, relationships of the sides and angles, and other characteristics, polygons can be classified under different names like triangles, squares, and quadrilaterals. The convex polygon definition explains that one is a polygon whose angles are all less than 180 degrees each. That also means that the vertices, the point where two sides meet, all point outward from the centre of the shape. In this article, we will find if two convex regular polygons have same centre or not. We will take two ...

Read More

How to Confirm If Given Four Points Form a Square in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 04-May-2023 1K+ Views

A square is a two-dimensional shape which has four sides of equal length. The opposite sides of a square are parallel to each other and all four interior angles are right angles with diagonal of equal length. In this article we will check how to confirm if given four points form a square. We will be given a square with four points i.e. A, B, C, D as shown in the figure − We need to check from these points that if they form a square or not. To check this it should satisfy the following condition − ...

Read More

Replace Negative and Positive Matrix Elements with 0 & 1 in Java

Mr. Satyabrata
Mr. Satyabrata
Updated on 04-May-2023 545 Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. The matrix in java is nothing but a multi-dimensional array which represents multiple rows and columns. Here we have given a matrix which contains set of elements including both positive and negative numbers and as per the problem statement we have to replace negative numbers with 0 and positive numbers with 1. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some instances Instance-1 Given matrix =-21 22 -23 24 -25 26 ...

Read More

How to Print Lower Triangular Matrix in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 04-May-2023 660 Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. The matrix in java is nothing but a multi-dimensional array which represents multiple rows and columns. Triangular Matrix − A square matrix is called as a triangular matrix if all the elements above or below the diagonal of that matrix are zeros. Lower- Triangular Matrix − A square matrix is called as a Lower- Triangular Matrix if all the elements above the diagonal of that matrix are zeros. Here we have to print the lower triangular matrix. Let’s start! To show ...

Read More

How to Find Sum of Matrix Elements in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 04-May-2023 4K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. The matrix in java is nothing but a multi-dimensional array which represents multiple rows and columns. Here we have given a matrix which contains set of elements and as per the problem statement we have to find out the sum of all the elements present inside the matrix. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some instances Instance-1 Given matrix =21 22 23 24 25 26 27 28 29 Sum ...

Read More

How to Display an Identity Matrix in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 04-May-2023 1K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. The matrix in java is nothing but a multi-dimensional array which represents multiple rows and columns. An identity matrix is a square matrix where all the elements of the main diagonal (i.e., the diagonal from the top-left to the bottom-right corner) are 1, and all the other elements are 0. It is denoted by the symbol "I" or "In", where "n" represents the size of the matrix. The identity matrix is important in linear algebra because it acts as the ...

Read More

How to Check if the Matrix is Diagonal Matrix in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 04-May-2023 1K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. The matrix in java is nothing but a multi-dimensional array which represents multiple rows and columns. A matrix having non-zero elements only in the main diagonal (running from the upper left to the lower right) is called as diagonal matrix. As per the problem statement we have to a matrix and we have to check whether that given matrix is a diagonal matrix or not. Let’s deep dive into this article, to know how it can be done by using Java ...

Read More

Form Equation of Circle from Given Radius and Centre in Java

Mr. Satyabrata
Mr. Satyabrata
Updated on 04-May-2023 344 Views

A circle is a closed shape formed by tracing a point that moves in a plane such that its distance from a given point is constant. In this article we will check how to form the equation of circle from given radius and centre. We will be given a circle with centre i.e (x1, y1) and radius r. We need to form the equation of circle from given radius and centre. The equation of the circle is given by formula − $$\mathrm{(x-x1)^2\:+\:(y-y1)^2\:=\:r^2}$$ Now after expanding and arranging the equation we get − $$\mathrm{(x)^2\:–\:(2*x1*x)\:+\:(y)^2\:-\:(2*y1*y)\:=\:(r)^2\:-\:(x1)^2\:-\:(y1)^2}$$ Let’s start! To show you ...

Read More
Showing 101–110 of 318 articles
« Prev 1 9 10 11 12 13 32 Next »
Advertisements