Akhil Sharma has Published 634 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

724 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 find the power of a number using library function

Akhil Sharma

Akhil Sharma

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

322 Views

This tutorial will help us to find the power of a number using library function. The base value and the exponent value is passed as an argument that is used to find the exponent power of the base value passed. And the final output is displayed. For example, For base ... 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 get current working directory

Akhil Sharma

Akhil Sharma

Updated on 22-Feb-2023 15:32:35

7K+ Views

Golang has a large range of internal packages to work with the directory. The directory in which the application is operating is known as the current working directory. Here we can use the OS packages as well as the path/filepath package of Golang to get current working directory. ... Read More

Advertisements