 
 Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Programming Articles - Page 614 of 3366
 
 
			
			342 Views
"Broadcasting” refers to how NumPy handles arrays of different dimensions during arithmetic operations. The smaller array is "broadcast" across the larger array, subject to certain limits, to ensure that their shapes are consistent. Broadcasting allows you to vectorize array operations, allowing you to loop in C rather than Python." This is accomplished without the need for unnecessary data copies, resulting in efficient algorithm implementations. In some cases, broadcasting is a negative idea since it results in wasteful memory utilization, which slows down the computation. In this article, we will show you how to perform broadcasting with NumPy arrays using python. ... Read More
 
 
			
			3K+ Views
A correlation matrix is a table containing correlation coefficients for many variables. Each cell in the table represents the correlation between two variables. The value might range between -1 and 1. A correlation matrix is used for summarizing the data, diagnose the advanced analysis, and as an input for a more complicated study. Correlation matrix is used to represent the relationship between the variables in the data set. It is a type of matrix that helps programmers analyze the relationship between data components. It represents the correlation coefficient between 0 and 1. A positive value implies a good correlation, a ... Read More
 
 
			
			3K+ Views
This tutorial will discuss how to write a Swift program to print the ASCII values. ASCII is known as American Standard Code for Information Interchange. In electronic communication, it is a character encoding standard to represent text in the computer and other devices. It generally has 128 standard ASCII codes including every upper case, lowercase alphabets, digits starting from 0-9 and symbols, etc., and assign each character a unique code. Below is a demonstration of the same − Suppose we enter the following input − Value = A Following is the desired output − ASCII value is 65 ... Read More
 
 
			
			11K+ Views
Getting input from the user in Swift is very easy with the help of the readLine() function. This function returns a string of characters which is read from the standard input at the end of the current line. If the control is already reached the EOF when the readLine() function is called then this method will return nil. Syntax Following is the syntax of Swift readLine() function − readLine(strippingNewline: true) Or readLine() Reading integer Example The following program shows how to get input from the user. import Foundation import Glibc print("Please enter number 1") var num1 = ... Read More
 
 
			
			1K+ Views
This tutorial will discuss how to write a Swift program to display alphabets (A to Z) using loop. In Swift, we can display alphabets starting from A to Z in both lower and upper case with the help of for-loop. Here we use the following terms in the below codes − Scalar − It represents a single value. Unicode − It is a standard encoding for text. UnicodeScalar − It represents a single Unicode scalar value. Below is a demonstration of the same − Suppose we enter the following input − A to Z Following is the desired output ... Read More
 
 
			
			5K+ Views
This tutorial will discuss how to write a Swift program to display all prime numbers from 1 to N. Prime numbers are those numbers that are greater than 1 and has exactly two factors that is 1 and the number itself. For example, 2 is the prime number because it has only two factors that are 1 and 2. Below is a demonstration of the same − Suppose we enter the following input − Range - 1 to 20 Following is the desired output − Prime numbers between 1 to 20 are - 2, 3, 5, 7, 11, ... Read More
 
 
			
			518 Views
This tutorial will discuss how to write a Swift program to check if two of three boolean variables are true. Given three boolean values now we have to check if two of the boolean variables are true or not. Boolean variables are those variables that either contain true or false. We can also use this program to check, out of given three conditions two are true or not. Below is a demonstration of the same − Suppose we enter the following input − Value1 = true Value2 = true Value3 = false Following is the desired output − Two of ... Read More
 
 
			
			7K+ Views
Fibonacci sequence is a sequence of numbers in which every number is the sum of the preceding two numbers and the starting number of this sequence are 0 and 1. So the general Fibonacci series is − 0, 1, 1, 2, 3, 5, 8, 13, 21, ...... Formula Following is the formula of Fibonacci series − Fn = Fn-1 + Fn-2 Below is a demonstration of the same − Suppose we enter the following input − Number = 5 Following is the desired output − Fibonacci Series is- 0, 1, 1, 2, 3 We can find the ... Read More
 
 
			
			3K+ Views
This tutorial will discuss how to write a Swift program to count the number of digits in an integer. Below is a demonstration of the same − Suppose we enter the following input − Number = 3454634 Following is the desired output − Total count is 7 We can count the number of digits using the following methods − Iterative method Recursion method Iterative Method We can calculate the total digits present in the given integer with the help of loops like if, while loop, etc. It is the easiest and cheapest method. Algorithm The algorithm ... Read More
 
 
			
			3K+ Views
This tutorial will discuss how to write a Swift program to reverse a number. Reversing a number is a process in which the position of the digits of a number is interchanged to reverse their order. Below is a demonstration of the same − Suppose we enter the following input − Number = 098627 Following is the desired output − Reversed order = 726890 Algorithm Following is The algorithm to reverse the number − Step 1 − Start Step 2 − Create a variable named “number”. Now the value of the “number” variable is either user-defined or ... Read More