Found 26504 Articles for Server Side Programming

Limitations of fixed basis function

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

347 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

200 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

235 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

316 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

346 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

Draw a Tic Tac Toe Board Using Python – Turtle

Utkarsha Nathani
Updated on 11-Oct-2023 15:22:58

2K+ Views

The wide range of libraries and tools makes python a popular and widely used programming language. One of the library which we will use in this article to complete the task of drawing a tic tac toe is Turtle. This library helps in creating graphics by using a virtual turtle. The commands are given to the virtual turtle on the window. In this article, we will use simple functions of the turtle library to draw the tic tac toe. What is Tic Tac Toe Board? Tic tac toe is a popular game, played on a 3*3 grid board. The ... Read More

Draw a Sun Using Arcade Library Python

Utkarsha Nathani
Updated on 13-Sep-2023 11:21:01

614 Views

Python is a highly multipurpose programming language with a vast network of libraries and frameworks that has capabilities beyond the standard language features. Arcade is one of the libraries used for creating graphics and handling user input. It uses basic shapes like circles and lines, a gradient approach, and many other techniques for creating attractive graphics. In this article, we will learn different methods for drawing a sun using the Arcade library in Python. Arcade Library and Its Features Arcade library is a Python library built on top of Pyglet, a multimedia library for python. It is a python library ... Read More

Tech number in Swift

Ankita Saini
Updated on 08-Sep-2023 15:59:09

199 Views

If the given number contains an even number of digits and the digits of the number can be divided into two equal parts from the middle. After dividing the digits sum up the divided digits and find the square of the final sum. If the square is equal to the sum itself then the given number is a tech number otherwise not. Example Demonstration Input 3025 Output Yes the given number is a tech number Input 2341 Output No the given number is not a tech number Here, 3025 is a ... Read More

Swift Program to Print Floyd’s Triangle

Ankita Saini
Updated on 08-Sep-2023 15:56:06

313 Views

Floyd triangle is right angle triangled which is named after Rober Floyd. It is created with the help of natural numbers starting from 1 in the top left corner and then the consecutive numbers are filled in the specified rows. Example Demonstration Input 4 Output 1 2 3 4 5 6 7 8 9 10 Here, the size of Floyd’s triangle is 4. So it will print Floyd’s triangle until 4 rows. In Swift, we can print Floyd’s triangle using the following methods: Using for−in loop Using while loop Using recursive function Algorithm ... Read More

How to Write Calculator Program using Switch Case in Swift

Ankita Saini
Updated on 08-Sep-2023 15:51:06

991 Views

A Calculator is an electronic device which is used to perform different types of mathematical operations like subtraction, addition, division, multiplication, etc. We can also create a calculator using Switch case and simple arithmetic operations in Swift programming. It will also perform the same mathematical operations as the original calculator. Example Demonstration Enter any two numbers: Number 1: 43 Number 2: 234 SIMPLE CALCULATOR 1. Addition 2. Subtraction 3. Multiplication 4. Division 5. Percentage Choose (1/2/3/4/5): 2 Result = -191.0 Here, we first enter the numbers on which we want to perform the ... Read More

Advertisements