Peter Johnson

Results 151 issues of Peter Johnson

Add some summing routines: * `ArraySum` - various overloads of routines that sum the contents of a numeric array * `SumOfLogs` - various overloads of routine that sum the contents...

enhancement
completed

This function raises real numbers to integral powers. According to _IEEE Std 754-2008 for Floating-Point Arithmetic, page 44_: > - pown(x, 0) is 1 for any x (even a zero,...

enhancement
completed

There's now a [REML repo](https://github.com/delphidabbler/reml) that contains definitions of all versions of REML. Instead of trying to keep REML documentation in sync, change `reml.html` to simply reference the required version...

documentation
completed

Once batch compilation and export is implemented in CodeSnip (see https://github.com/delphidabbler/codesnip/issues/16), create a tool to read the output CodeSnip's export file and automatically update compile results in the collection.

considering
pending

If n ∈ ℕ (n ≠ 0) and b is the number base (b>1) then the number of digits, d, of n is d = ⌊logb(n)⌋ + 1

enhancement
accepted

Following definition of narcissistic numbers (of any base > 1) from [Wikipedia](https://en.m.wikipedia.org/wiki/Narcissistic_number): ![Screenshot_20230721-074955_Chrome](https://github.com/delphidabbler/code-snippets/assets/5164283/6c4488f7-ffec-4787-9afd-48e1c93c5366)

enhancement
accepted

There are lots of overloaded Max, Min and Mid routines in the Maths category of the csdb collection, but it's crying out for some generic versions. ⚠️ **Will need to...

enhancement
considering

Get `csdb` tests to compile and run with Delphi 10.4 & 11.

enhancement
accepted

Add Mean, Median and Mode averages in various overloads of Int and Float. All should operate on dynamic arrays.

enhancement
accepted

[Wikipedia](https://en.m.wikipedia.org/wiki/Palindromic_number) defines palindromic numbers, for any base > 1, as: ![Screenshot_20230721-075659_Chrome](https://github.com/delphidabbler/code-snippets/assets/5164283/f27619d5-3d2a-4acc-9c07-0fa0098838ee) The same article also states: > A palindromic number (also known as a numeral palindrome or a numeric palindrome)...

enhancement
accepted