Akhil Sharma has Published 671 Articles

Golang Program to Calculate Standard Deviation

Akhil Sharma

Akhil Sharma

Updated on 28-Dec-2022 16:28:28

2K+ Views

In this tutorial, we will write a go language code to calculate the standard deviation. The standard deviation is a statistic that expresses how much variance or dispersion there is in a group of numbers. It is calculated as the square root of the mean. Find the Standard Deviation Using ... Read More

Golang Program to Add Two Matrix Using Multi-dimensional Arrays

Akhil Sharma

Akhil Sharma

Updated on 28-Dec-2022 16:23:57

440 Views

In this tutorial, we will write a go language program to add two matrices. The difference between a single-dimension array and a multidimensional array is that the former holds an attribute while the latter holds another array on the index. Additionally, every element of a multidimensional array will have the ... Read More

Golang Program To Add Two Matrices

Akhil Sharma

Akhil Sharma

Updated on 28-Dec-2022 16:14:39

642 Views

In this tutorial, we will write a go language program to add two matrices. A matrix is a collection of numbers that are arranged in rows and columns, which is a two-dimensional array. Go Language Program To Add Two Matrices Let us now look at a go language program to ... Read More

Golang Program For Array Rotation

Akhil Sharma

Akhil Sharma

Updated on 28-Dec-2022 15:58:03

748 Views

Introduction In this tutorial, we will see to write a go language program to rotate an array. We will write two programs for this. One to rotate the array to left and another to rotate it to right. Golang Program to Rotate an Array to Left The following code illustrates ... Read More

Golang Program to get the denominator from a rational number

Akhil Sharma

Akhil Sharma

Updated on 23-Dec-2022 10:26:31

196 Views

In this article, we will discuss how to get the denominator from a rational number. Rational numbers − In mathematics, rational numbers are defined as numbers that can be expressed in the form of a/b where a and b are integer values. For example- 1/3, 5/8 etc. Note that the ... Read More

Golang Program to get the numerator from a rational number

Akhil Sharma

Akhil Sharma

Updated on 22-Dec-2022 18:31:40

204 Views

In this article, we will discuss how to get a numerator from a rational number. Syntax func NewRat(a, b int64) *Rat func (x *Rat) Num() *Int NewRat() function takes two integer numbers as input arguments and returns a rational number in the form of a/b. here a is the ... Read More

Golang Program to Convert Character to String

Akhil Sharma

Akhil Sharma

Updated on 22-Dec-2022 18:30:24

3K+ Views

In this article, we are going to learn about how to convert characters to string go programming language. Chars − Go language does not have a char data type on the contrary characters in go language are represented by rune data type. Rune represents a character value that is encoded ... Read More

Golang Program to Create an Interface

Akhil Sharma

Akhil Sharma

Updated on 22-Dec-2022 18:24:13

1K+ Views

In this article, we are going to learn about how to create an interface using golang programming INTERFACE − In the go language, an interface is a custom type that is used to specify one or more method signatures. An interface is abstract i.e. we cannot create an instance of ... Read More

Golang Program to Create Abstract Class

Akhil Sharma

Akhil Sharma

Updated on 22-Dec-2022 18:21:48

2K+ Views

In this article, we are going to learn about how to create an Abstract class using Golang Programming Abstract Class − A restricted class is called an abstract class which cannot be used to create an object from it to access an abstract class, it must be inherited from another ... Read More

Golang Program to Create a Class and Object

Akhil Sharma

Akhil Sharma

Updated on 22-Dec-2022 18:20:37

8K+ Views

In this article we are going to learn how to create class and object. Structs − Go language does not have classes. To create an object in the go programming language we can specify structs and store key-value pairs in it. A struct is a user-defined data type that ... Read More

Advertisements