Repository navigation
Add MUNIT, MDETERM and MINVERSE functions (HF-401, HF-399, HF-400) - #1817
Open
marcin-kordas-hoc wants to merge 2 commits into
Open
marcin-kordas-hoc wants to merge 2 commits into
marcin-kordas-hoc wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
hyperformula-docs | 2004308 | Commit Preview URL Branch Preview URL |
Oct 15 2026, 06:08 AM |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1817 +/- ##
===========================================
- Coverage 97.28% 97.26% -0.02%
===========================================
Files 207 207
Lines 16218 16320 +102
Branches 3588 3614 +26
===========================================
+ Hits 15777 15874 +97
- Misses 433 438 +5
Partials 8 8
🚀 New features to boost your workflow:
|
Performance comparison of head (94b7812) vs base (05c1a29) |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds three matrix functions:
MUNIT,MDETERMandMINVERSE(HF-401, HF-399, HF-400).MUNIT(dimension)returns the identity matrix. The dimension is truncated to an integer; 0, negative values, text and an empty text are#VALUE!, andTRUEis 1.MDETERM(array)returns the determinant of a square matrix of numbers. A matrix that is not square, or holds text, an empty cell or a boolean, is#VALUE!. A scalar is its own determinant.MINVERSE(array)returns the inverse of a square matrix. A singular matrix is#NUM!; a matrix that is not square or holds text is#VALUE!.MatrixPlugin, with metadata, translations, the license capability table entries and a CHANGELOG entry.Behaviour check against Excel
60 formulas were evaluated in Excel Online (MS Graph live session) and in HyperFormula: 58 identical, 2 different, 0 not evaluable. They cover
MUNITsizes and truncation, 2x2 and 3x3 matrices, one-cell matrices, scalars, text, booleans, blank cells, errors, non-square ranges and the shape of the results (read throughINDEX,ROWSandCOLUMNS, because the results spill).The 2 differences:
MDETERM(A1:B2*2): Excel evaluates the arithmetic on the range as an array (-8); HyperFormula needsuseArrayArithmetic, otherwise it is#VALUE!.MINVERSEover a range with text: Excel returns#VALUE!; in the measuring layout HyperFormula returns#SPILL!, because the predicted 2x2 result area is blocked by neighbouring formulas.A further difference is not asserted because it depends on the elimination algorithm: for the singular matrix
{1,2,3;4,5,6;7,8,9}Excel returnsMDETERM6.66E-16 and aMINVERSEof values around 4.5E+15, while HyperFormula eliminates exactly and returns0and#NUM!. It is listed indocs/guide/list-of-differences.md.Translations
Names come from the Excel function translation table named in DEV_DOCS.md (Excel 2013), for 15 languages (for example de
MEINHEIT,MDET,MINV; plMACIERZ.JEDNOSTKOWA,WYZNACZNIK.MACIERZY,MACIERZ.ODW). The individual function pages were not checked one by one.enGB,enUSandidIDkeep the English names.Tests
Paired tests branch:
feat/hf-matrix-munit-mdeterm-minversein the tests repository (59 tests). Full local run on this head: 521 suites, 6801 passed, 3 skipped.🤖 Generated with Claude Code