When working with Atomic Operators and deferred operations provided by the Linq extensions, it is important to understand the behaviour of the program. Consider the following code: int i = 10; var q = (from m in Enumerable.Range(1, 5) select ++i + i++); foreach (var n in q) { Console.WriteLine(“i = {0}; n = {1}; … Continue reading Linq Deferred Loading impact on atomic operators
Author: Karlston D'Emanuele
Geometric Mean
Geometric Mean is another way of finding the average of a sample. While the Arithmetic Mean takes the sum of the sample divided by the sample size, the geometric mean takes the root of the sample items product. In Mathematical Notation this is written as: Note: The Geometric Mean symbol used in the expression above, … Continue reading Geometric Mean
Finding Intermediate Values in Arithmetic Mean Sequence
The following article is inspired from https://brilliant.org/daily-problems/average-visual/ of March 17th, 2019. The Arithmetic Mean Sequence for any 2 numbers, a1 and a2, is a progressive series of numbers where each number is the Arithmetic Mean of the previous 2 numbers, starting the sequence with a1 and a2. Solving intermediary values in the sequence Let x … Continue reading Finding Intermediate Values in Arithmetic Mean Sequence
Median
The 3 most popular average algorithms are: Arithmetic Mean Median Mode In the previous articles the Arithmetic Mean and Mode have been covered. The last popular average algorithm the Median is covered in this article. Median average is when the middle value within a range is found. For example, consider a class of 5 students … Continue reading Median
Jacobsthal Number Sequence
In Mathematics several well-known sequences exist, like Fibonacci, Square numbers sequence, etc. One such sequence is Jacobsthal, which states that: Another way to calculate the Jacobsthal number without using recursion on the Jacobsthal equation, is to use the Binet formula [4][5]: Using any of the forumalas above to generate the first 50 numbers in the … Continue reading Jacobsthal Number Sequence
