Commit Graph

6011 Commits

Author SHA1 Message Date
oleibman 5b4d7fcdc8 Partial Implementation of T.DIST
T.DIST takes 3 parameters. When the 3rd parameter, a boolean, is true, we now have code to support the request. We still do not have code to handle the false case.
2025-12-16 17:10:53 -08:00
oleibman 06d2799528 Forgot to Remove a Placeholder Function 2025-12-15 17:17:27 -08:00
oleibman 5eb46bd48e Fix Some Functions Related to Student-T Distribution
Fix #4167. That problem was initially reported as a problem with TINV, however, at its root, it was actually a problem with TDIST (which TINV needs to call). Both of these are deprecated by Microsoft in favor of some newer functions. PhpSpreadsheet incorrectly treated T.INV as an alias for TINV, and did not implement T.INV.2T, which actually is an alias for TINV.

To solve this problem, I adapted the Perl CPAN module `Statistics::Disttributions`, written by Michael Kospach around 2003. Unit test results have been manually checked against Excel; a few had to be changed because they were wrong (see the original issue). I believe that all of TDIST, T.DIST.2T, T.DIST.RT, TINV, T.INV, and T.INV.2T now function correctly, at least most of the time. I have not found code or an algorithm that I can use for T.DIST nor for T.TEST, both of which remain unimplemented.
2025-12-15 16:53:30 -08:00
oleibman 09f1a57e53 Merge pull request #4746 from oleibman/issue3255
ListWorksheetInfo Improvements for Xlsx and Ods
2025-12-14 16:12:42 +00:00
oleibman f6b0668422 Update Changelog 2025-12-14 08:08:10 -08:00
oleibman a67339973c Merge pull request #4712 from rpg600/5.1.0-patched
feat: add drawing pass-through support for unsupported elements
2025-12-14 09:36:51 +00:00
oleibman b1f9014567 Fix Ods ListWorksheetInfo
It wasn't handling skipped rows and columns correctly.
2025-12-14 01:21:28 -08:00
oleibman 8120b652c4 Merge pull request #4745 from oleibman/sharedxls
Improve Coverage in Shared
2025-12-14 04:43:08 +00:00
oleibman 8f6acb6c4a Merge pull request #4743 from oleibman/sortsortby
Better Tests for SORT and SORTBY
2025-12-14 04:42:46 +00:00
oleibman 1daaad2576 Xlsx Reader ListWorksheetInfo Honor readEmptyCells
Fix #3255, another oldie (3+ years). Allow the ability to only count rows and columns with data. To avoid a breaking change, keep present logic unless Reader `readEmptyCells` attribute is set to its non-default value, i.e. `false`. This adds very little overhead, and gives a result that I think many users would prefer.
2025-12-13 20:14:11 -08:00
oleibman 11d60f6ace Add Sample for Sort By Column 2025-12-13 10:24:07 -08:00
Reinis Grinbergs 1bb6ae8ae5 Add content types when pass-through 2025-12-13 14:34:14 +01:00
oleibman c69133dc7e Additional ExponentialBestFit Test 2025-12-12 15:11:48 -08:00
oleibman 9199afc30d One More Test 2025-12-12 10:13:38 -08:00
oleibman 6cb44f2a63 More Tests for Logarithmic and Power Trends 2025-12-12 09:28:49 -08:00
oleibman 73138133cf More Tests for LinearBestFit 2025-12-12 07:43:02 -08:00
Reinis Grinbergs 7267164c41 pass-through media files and relationship 2025-12-12 09:36:58 +01:00
oleibman 9878dfb940 Trend Tests 2025-12-12 00:26:29 -08:00
oleibman 32161a7699 More Tests 2025-12-11 23:05:24 -08:00
oleibman 02d507984b Fix Test That Runs on Linux But Not Windows 2025-12-11 22:07:30 -08:00
oleibman 4169c51c7c Improve Coverage in Shared 2025-12-11 21:53:59 -08:00
oleibman d727455173 Document Excel's Behavior When Sorting Different DataTypes 2025-12-11 17:37:17 -08:00
oleibman f62034a752 Booleans
I don't know how Excel managed to mess up sorts involving booleans, but they did.
2025-12-10 14:57:02 -08:00
oleibman 9362d21bb5 Additional Test 2025-12-10 11:47:11 -08:00
oleibman 559ab2294a Better Tests for SORT and SORTBY
Current tests use only direct calls. Using them in spreadsheet context would be better.

There were some minor bugs. Excel treats an argument consisting of a single-cell as if it were a range; PhpSpreadsheet, which currently returns the content of the single cell, is changed to match that behavior, which is important if one of the other arguments causes a VALUE error.

Excel can do a column sort in SORTBY, despite the fact that Microsoft doesn't even mention that possibility in its documentation. I found documentation of that possibility on a 3rd-part site https://exceljet.net/functions/sortby-function, confirmed it in Excel, and took my best guess as to how to implement it. The existing test member for SORTBY included one such test, but it succeeds mostly by accident. The new member has a more reliable test.
2025-12-09 23:13:12 -08:00
oleibman 60aa9704b4 Merge pull request #4741 from oleibman/unseparate
Eliminate Unneeded Separate Process Tests
2025-12-09 08:02:02 +00:00
oleibman 0575e2062c Minor Modifications to Sample Names and Locations 2025-12-08 08:53:59 -08:00
oleibman 2c8177a319 Eliminate Unneeded Separate Process Tests
The tests stay; they just no longer run in separate processes. I think that only 2 tests still require separate processes - Helper/SampleTest and Tcpdf/NoDieTest. Aside from a new internal method in IOFactory, all the changes here are to test members.
2025-12-07 23:15:01 -08:00
oleibman f1ab77698e Merge pull request #4740 from oleibman/issue4739
Single Character Table Names
2025-12-06 15:10:57 +00:00
oleibman 01f9b2a60b Single Character Table Names
Fix #4739. Change `+` to `*` in regexp. Add test.
2025-12-06 05:58:28 -08:00
oleibman 0acb994be5 Merge pull request #4738 from oleibman/nophpunit9
Remove Phpunit9-specific Portions of Test Suite
2025-12-05 05:20:01 +00:00
oleibman 7cd257b7c1 Remove Phpunit9-specific Portions of Test Suite
Some tests are only run under Phpunit9, but we use Phpunit10 for all supported releases. Eliminate the unused tests.
2025-12-04 20:57:05 -08:00
oleibman 954fb871d3 Merge pull request #4735 from oleibman/gridright
Minor Improvements to TextGrid
2025-12-05 02:59:36 +00:00
oleibman e3140e5142 Update CHANGELOG.md 2025-12-04 18:56:43 -08:00
oleibman fe6d02b7d8 Different Ways of Setting numbersRight 2025-12-04 18:51:30 -08:00
oleibman 56537cb392 Merge pull request #4736 from zhukoff74/refactor_HandlerTest
Removed duplicate try-catch statements
2025-12-05 02:41:10 +00:00
oleibman 341b999976 Improve Sample Output 2025-12-04 17:55:18 -08:00
zhukoff74 c0e7bfdcb5 Removed duplicate try-catch statements 2025-12-04 21:16:44 +03:00
oleibman ef6c3758c7 Minor Improvements to TextGrid
Add property to right-align numeric fields.

Make most private properties/methods protected.
2025-12-04 08:34:47 -08:00
oleibman dde7fe180b Merge pull request #4734 from zhukoff74/refactor_CellTest
Simplified CellTest and added a helper method for styles
2025-12-04 03:37:25 +00:00
oleibman c1be7a5bb5 Strengthen One Test 2025-12-03 19:33:07 -08:00
zhukoff74 49479a01b2 replace with 2025-12-03 23:37:01 +03:00
zhukoff74 873aa649fc Simplified CellTest and added a helper method for styles 2025-12-03 22:54:20 +03:00
oleibman a56cbaccb1 Merge pull request #4733 from oleibman/mpdf85
Update Mpdf
2025-12-03 19:01:06 +00:00
oleibman a8b86e38bb Update Mpdf
Fully 8.5 compliant version was just released.
2025-12-03 10:34:35 -08:00
oleibman 09b704a8bd Merge pull request #4732 from zhukoff74/refactor_ArrayTest
Improve ArrayTest structure and readability
2025-12-03 07:07:35 +00:00
zhukoff 998ce215c4 Corrections based on comments 2025-12-03 07:38:54 +03:00
oleibman 5106fac5b1 Merge pull request #4726 from oleibman/issue4724
Slightly Better Support for Escaped Characters in Xlsx Reader/Writer
2025-12-03 03:44:00 +00:00
oleibman e455f73d91 Merge branch 'master' into issue4724 2025-12-02 19:41:09 -08:00
oleibman 09a1865b26 Update CHANGELOG.md 2025-12-02 19:40:30 -08:00