Akhil Sharma has Published 507 Articles

Haskell Program to calculate the base 10 logarithm of the given value

Akhil Sharma

Akhil Sharma

Updated on 01-Mar-2023 10:35:10

641 Views

This tutorial will help us in calculating the base 10 logarithm of the given value. A logarithm is a mathematical function that calculates the power to which a number (called the base) must be raised to produce a given value. The base 10 logarithm, is a logarithm in which the ... Read More

Haskell Program to calculate the base 2 logarithm of the given value

Akhil Sharma

Akhil Sharma

Updated on 01-Mar-2023 10:07:53

1K+ Views

In Haskell, the logarithm is a mathematical function that calculates the power to which a number (called the base) must be raised to produce a given value. The base 2 logarithm, also known as binary logarithm, is a logarithm in which the base is 2. For example, the base 2 ... Read More

Haskell Program to calculate the cube root of the given number

Akhil Sharma

Akhil Sharma

Updated on 01-Mar-2023 10:06:30

727 Views

This Haskell article will help us in calculating the cube root of the given number. The cube root of a number is a value that, when multiplied by itself three times, equals the original number. For example, the cube root of 8 is 2 because 2 x 2 x 2 ... Read More

Haskell Program to calculate the square root of the given number

Akhil Sharma

Akhil Sharma

Updated on 01-Mar-2023 10:05:43

4K+ Views

There are different techniques in Haskell to calculate a square root of a number. The square root of a number is a value that, when multiplied by itself, equals the original number. For example, the square root of 9 is 3 because 3 x 3 = 9. Algorithm Step ... Read More

Haskell Program to calculate the area of the rhombus

Akhil Sharma

Akhil Sharma

Updated on 01-Mar-2023 10:03:56

203 Views

In Haskell there are different methods to calculating the area of the rhombus. We can use sides, diagonals and height on the basis of which, its area can be computed by various methods. Algorithm Step 1 − The Text.Printf module is imported. Step 2 − Defined ... Read More

Haskell Program to calculate the Lowest Common Multiple

Akhil Sharma

Akhil Sharma

Updated on 01-Mar-2023 10:01:52

743 Views

This tutorial will help us in calculating the Lowest Common Multiple in Haskell Programming. The least common multiple (LCM) is the smallest positive integer that is a multiple of two or more integers. It can be found by listing out the multiples of each number and finding the smallest multiple ... Read More

Haskell Program to calculate the Highest Common Factor

Akhil Sharma

Akhil Sharma

Updated on 01-Mar-2023 10:00:24

365 Views

This tutorial will help us in calculating the highest common factor using Haskell Programming. The highest common factor (HCF), also known as the greatest common divisor (GCD), is the largest positive integer that divides two or more integers without leaving a remainder. It is a measure of the largest positive ... Read More

Golang program to implement binary tree data structure

Akhil Sharma

Akhil Sharma

Updated on 22-Feb-2023 17:56:04

3K+ Views

In the Go, a binary tree is a tree data structure where each node has at most two children, as the left child and the right child. Go's built-in data structures and operations, like structs and pointers, can be used to create a binary tree. The tree's nodes can be ... Read More

Golang program to read and print all files from zip file

Akhil Sharma

Akhil Sharma

Updated on 22-Feb-2023 15:29:47

2K+ Views

Golang has packages like os, io, and Archie/zip that can be used to read and print all the files from a zipped file. A zip file is a compressed collection of a set of files/folders. The OS package is used for performing copy operations, the io pacakge is for reading ... Read More

Golang program to get all files present in a directory

Akhil Sharma

Akhil Sharma

Updated on 22-Feb-2023 15:26:31

3K+ Views

Golang has OS package such as OS.open(), os.closs(), os.copy() and move more that are used for performing different operations with the external files. Similiary we have io package in golang that is used for performing read and write operations on the external file. Here in this article, we are going ... Read More

Advertisements