[11] Results

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 : 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

Golang : Calculate half life decay example

golang half-life-decay power-of math-pow round

My wife is a chemistry lecturer and she was showing her student how to calculate half-life decay of an element.….... read more

Golang : Display float in 2 decimal points and rounding up or down

golang math-pow float round-up round-down decimal-points

We will cover 2 items for this tutorial.

First, we will learn how to display a float number in….... 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

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 : 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