Found 27104 Articles for Server Side Programming

Centered Octadecagonal Number

Rinish Patidar
Updated on 27-Sep-2023 15:43:03

75 Views

The problem includes to print the N-th centered octadecagonal number, where N will be given as an input. A centered octadecagonal number is a type of figurative number which is represented as a dot in the centre surrounded by the successive layers of the octadecagon. An octadecagon is a polygon with 18 sides in it. The successive layers of the octadecagon are the first layer will be 18-sided polygon, the next will be 36-sided polygon and so on. The numbers can be better explained with the help of figures. The first number is represented as a dot in the ... Read More

Centered dodecahedral number

Rinish Patidar
Updated on 27-Sep-2023 15:33:16

107 Views

The problem statement says to print the N-th centered dodecahedral number for any positive value of N which will be the user input. A centered dodecahedral number is a number that can be represented in a particular pattern of figure. A dodecahedron is a three-dimensional figure in mathematics which has 12 flat faces. And a centered dodecahedral number is a number which can be represented in the form of a figure with a dot in the centre surrounded by the successive layers of the dodecahedron (12 faced 3-d structure). The successive layers of the dodecahedron says the first layer will ... Read More

Centered nonadecagonal number

Rinish Patidar
Updated on 27-Sep-2023 15:36:15

64 Views

The problem statement includes printing of the N-th centered nonadecagonal number for any positive value of N. A centered nonadecagonal numbers are numbers which are represented in a particular pattern of figure. This number can be represented in a figure as a dot in the centre surrounded by the successive layers of the nonadecagon. A nonadecagon is a type of polygon in mathematics which has 19 sides in it. The successive layers of the nonadecagon suggests that the first layer surrounding the dot in the centre will be 19 sided polygon followed by 38 sided polygon and so ... Read More

Centered cube number

Rinish Patidar
Updated on 27-Sep-2023 11:22:35

126 Views

The problem statement includes printing the N-th centered cube number for some positive value of N, which will be the user input. A centered cube number is the number of points in a three-dimensional pattern created by a point surrounded by concentric cubical layers of points, with i^2 points on the square faces of the ith layer. It is equivalently the number of points in a body-centered cubic pattern within the cube with n + 1 points along each of its edges. You can refer to wikipedia for figurative representation of the centered cube number which will help in better ... Read More

Python | Measure similarity between two sentences using cosine similarity

Mithilesh Pradhan
Updated on 26-Sep-2023 12:03:35

1K+ Views

Introduction Natural Language Processing for finding the semantic similarity between sentences, words, or text is very common in modern use cases. There are numerous ways to calculate the similarity between texts. One such popular method is cosine similarity. It is used to find the similarity between two vectors that are non-zero in value and measures the cosine of the angle between the two vectors using dot product formula notation. Through this article let us briefly explore cosine similarity and see its implementation using Python. Cosine similarity – Finding similarity between two texts Cosine Similarity is defined as the cosine of ... Read More

Limitations of fixed basis function

Mithilesh Pradhan
Updated on 26-Sep-2023 16:00:10

159 Views

Introduction Fixed basis functions are functions that help us to extend linear models in Machine Learning, by taking linear combinations of nonlinear functions. Since Linear models depend on the linear combination of parameters, they suffer a significant limitation. The radial function thus helps model such a group of models by utilizing non-linearity in the data while keeping the parameters linear. Different linear combinations of the fixed basis functions are used within the linear regression by creating complex functions. In this article let us look into the fixed basis function and its limitations Fixed Basis function A linear regression model ... Read More

Draw an Ellipse Using Arcade Library in Python

Utkarsha Nathani
Updated on 11-Oct-2023 15:14:49

68 Views

Python is one of the most popular languages in the programming world. The wide range of libraries and tools which are offered by the python language makes it mostly used language. Talking about the libraries we have Arcade library, a python library which works as the multimedia library helps in creating 2D games and graphics which can be included in them. In this article, we will be using the Arcade library for drawing an ellipse in Python. What is Arcade Library? A multimedia library in python, it provides various functions for creating 2D games, graphical objects, using shapes such ... Read More

Draw an Arc Using Arcade in Python

Utkarsha Nathani
Updated on 11-Oct-2023 15:15:54

90 Views

Python is an extensively used programming language. The presence of wide range of libraries and tools makes it a popular language. One of the libraries of python is Arcade. This library works as a multimedia library and provides graphic tools for the creation of 2D games, objects used in graphic applications and many more. In this article, we will be drawing an arc using Arcade library in Python. We will be using two different methods for completing the task provided to us. Let’s start by understanding the basics of Arcade library. Arcade Library Arcade library was developed for ... Read More

Draw a Triangle Using Arcade in Python

Utkarsha Nathani
Updated on 11-Oct-2023 15:20:14

135 Views

Arcade library is one of the built-in libraries of python. It is extensively used in creating a variety of multimedia objects, which can be used in making of 2D games and other applications where graphics are required. In this article, we will be using Arcade library in Python for completing a task of creating a triangle. We will start by a brief introduction of Arcade library, its functions and use. What is Arcade Library? Arcade library was developed for removing the limitations of the Py.game module, since it was the only module used by the python game programmers. This ... Read More

Draw a Tree Using Arcade Library in Python

Utkarsha Nathani
Updated on 11-Oct-2023 15:21:37

124 Views

Python is a modern programming language. The wide range of features, such as extensive libraries, simple syntax etc. has increased its popularity in different fields such as web development, data science, and many more. In this article, we will be using one of the libraries of python which is Arcade. This library will help us build a tree using different structures. What is Arcade Library? The arcade library was developed for creating more appealing graphics for games and other graphical applications. Less number of choices gave rise to a different library which became a modern python module. This ... Read More

Advertisements