AmitDiwan has Published 11359 Articles

Java Program to Compute Quotient and Remainder

AmitDiwan

AmitDiwan

Updated on 21-Feb-2022 11:12:33

764 Views

In this article, we will understand how to compute the quotient and reminder in Java. Quotient and Reminder is calculated using two simple formula "Quotient = Dividend / Divisor" and "Remainder = Dividend % Divisor".Given an integer a and a non-zero integer d, it can be shown that there exist ... Read More

Java Program to Print the ASCII values

AmitDiwan

AmitDiwan

Updated on 21-Feb-2022 11:07:46

935 Views

In this article, we will understand how to print ascii values of characters. This is done by assigning the character to an integer value and printing those integer values.ASCII stands for American Standard Code for Information Interchange. There are 128 standard ASCII codes, each of which can be represented by ... Read More

Return element-wise title cased version of string or Unicode in Numpy

AmitDiwan

AmitDiwan

Updated on 21-Feb-2022 11:05:26

84 Views

To return element-wise title cased version of string or unicode, use the numpy.char.title() method in Python Numpy. Title case words start with uppercase characters, all remaining cased characters are lowercase.The function title() returns an output array of str or unicode, depending on input type. The numpy.char module provides a set ... Read More

Get the itemsize of the masked array in Numpy

AmitDiwan

AmitDiwan

Updated on 21-Feb-2022 11:03:07

140 Views

To get the itemsize of the Masked Array, use the ma.MaskedArray.itemsize attribute in Numpy. A masked array is the combination of a standard numpy.ndarray and a mask. A mask is either nomask, indicating that no value of the associated array is invalid, or an array of booleans that determines for ... Read More

Java Program to convert Decimal to Octal

AmitDiwan

AmitDiwan

Updated on 21-Feb-2022 10:59:16

437 Views

In this article, we will understand how to convert decimal to octal. a Decimal number is a number whose whole number part and the fractional part is separated by a decimal point. Octal Number has a base of eight and uses the number from 0 to 7.Below is a demonstration ... Read More

Get the information about the memory layout of the masked array in Numpy

AmitDiwan

AmitDiwan

Updated on 21-Feb-2022 10:59:02

124 Views

To get the information about the memory layout of the masked array, use the ma.MaskedArray.flags in Numpy. Masked arrays are arrays that may have missing or invalid entries. The numpy.ma module provides a nearly work-alike replacement for numpy that supports data arrays with masks.A masked array is the combination of ... Read More

Compute the bit-wise XOR of two boolean arrays element-wise in Numpy

AmitDiwan

AmitDiwan

Updated on 21-Feb-2022 10:55:58

350 Views

To compute the bit-wise XOR of two boolean arrays element-wise, use the numpy.bitwise_xor() method in Python Numpy.Computes the bit-wise XOR of the underlying binary representation of the integers in the input arrays. This ufunc implements the C/Python operator ^.The 1st and 2nd parameter are the arrays, only integer and boolean ... Read More

Return the variance of the masked array elements along column axis in Numpy

AmitDiwan

AmitDiwan

Updated on 21-Feb-2022 10:51:09

79 Views

To return the variance of the masked array elements, use the ma.MaskedArray.var() in Numpy. The axis is set using the axis parameter. The axis is set to 0, for column axis.Returns the variance of the array elements, a measure of the spread of a distribution. The variance is computed for ... Read More

Java Program to Find the Perimeter of a Rectangle

AmitDiwan

AmitDiwan

Updated on 21-Feb-2022 10:45:19

801 Views

In this article, we will understand how to find the perimeter of a rectangle. The Perimeter of a rectangle is calculated by adding the lengths of all the sides of the rectangle.Below is a demonstration of a rectangle. The perimeter of a rectangle is the total length of the two ... Read More

Compute the bit-wise OR of a 1D and a 2D array element-wise in Numpy

AmitDiwan

AmitDiwan

Updated on 21-Feb-2022 10:40:02

105 Views

To compute the bit-wise OR of a 1D and a 2D array element-wise, use the numpy.bitwise_or() method in Python Numpy. Computes the bit-wise OR of the underlying binary representation of the integers in the input arrays. This ufunc implements the C/Python operator |.The 1st and 2nd parameter are the arrays, ... Read More

Advertisements