[11] Results

Golang : Check if an integer is negative or positive

golang negative positive integer math-signbit

A simple example on how to check if a given number is negative or positive number in Golang.

Here you….... read more

Golang : Math pow(the power of x^y) example

golang math-pow power-of

No programming language will be complete without the power of math function. This tutorial is a simple example on how….... read more

Golang : Find correlation coefficient example

golang math-sqrt correlation-coefficient

Below is an example of Golang code to find the strength of relation between two given variables or correlation coefficient.….... read more

Golang : Check if integer is power of four example

golang math-pow power-of


You need to test if a given integer is a power of 4. For example, if given number =….... read more

Java : Generate multiplication table example

java math multiplication-table education

Putting this here for my own future reference. A simple Java multiplication table generator that I used to teach my….... read more

Golang : Generate multiplication table from an integer example

golang math multiplication-table education

My son is 6 years old now and it is about the right time to expose him to some basic….... read more

Golang : Quadratic example

golang quadratic math-square-root parsefloat

Here is a simple tutorial on how to perform quadratic calculation with Golang. This program accepts two floating point values….... read more

Golang : convert string or integer to big.Int type

golang math-big-int string-to-integer setstring

Problem :

You have a big integer number in string format and you want to convert(cast) it to big.Int type.….... read more