Quick observation: I recently noticed that Chebyshev polynomials and Fibonacci numbers have analogous formulas. The nth Chebyshev polynomial satisfies for…
Continue Readingnumbers
How to Generate Random Numbers in Python?
The world is governed by chance. Randomness stalks us every day of our lives. …
Continue ReadingOdd numbers in Pascal’s triangle
Here’s an interesting theorem I ran across recently. The number of odd integers in the nth row of Pascal’s triangle…
Continue ReadingFormatting numbers at the command line
The utility numfmt, part of Gnu Coreutils, formats numbers. The main uses are grouping digits and converting to and from…
Continue ReadingBinary surprise
As mentioned in the previous post, the Gauss-Wantzel theorem says you can construct a regular n-gon with a straight edge…
Continue ReadingPrime numbers and Goldbach’s conjecture visualization.
isn’t it?The German mathematician G. F. B. Riemann (1826–1866) observed that the distribution of prime numbers is very closely related…
Continue ReadingShare The π: Honoring Neglected Mathematical Constants
Subsequent occurrences are fairly common. Brun’s and Meissel-Mertens ConstantsPrime numbers make an appearance in two fascinating constants we’ll discuss next.…
Continue ReadingList Comprehension in Python
List Comprehension in PythonCreating new lists from other iterablesRupesh MishraBlockedUnblockFollowFollowingMay 11, 2017List comprehensions are used for creating new lists from other…
Continue ReadingCreating functions and using lapply in R
Creating functions and using lapply in RMichael Grogan (MGCodesandStats)BlockedUnblockFollowFollowingMay 31Functions are used to simplify a series of calculations. For instance, let…
Continue ReadingJulka — SPOJ
Read the question and scratch your skull for a while thinking about some math. Maybe put a pen onto a…
Continue ReadingAutocorrelation test for independence
Autocorrelation test for independenceDHIRAJ D SBlockedUnblockFollowFollowingMay 11Autocorrelation is a characteristic of data in which the correlation between the values of…
Continue ReadingString Calculator Kata using Eta
" ++ (mkInput separators ns)) `shouldBe` sumList nsThe novelty in this test is the composition of multiple multi-character separators. Fortunately…
Continue ReadingAccurate decimal numbers in PHP
Accurate decimal numbers in PHPRudi TheunissenBlockedUnblockFollowFollowingNov 15, 2018Most web applications deal with decimal numbers at some stage — currency, coordinates, measurements, scientific arithmetic — but…
Continue ReadingHow fast can you multiply really big numbers?
Using the algorithm you learned in elementary school, it takes O(n²) operations to multiply two n digit numbers. But for…
Continue ReadingSet Theory — History & Overview
Set Theory — History & OverviewPart I — What Is Set Theory & Why Is It Relevant Today?Jesus NajeraBlockedUnblockFollowFollowingJan 12The concept of infinity is ideologically far…
Continue ReadingPrime numbers in complex domains are actually quite simple
Likewise, a number in Z[√−2] is said to be divisible by another number in Z[√−2] if the result of the…
Continue Reading