axkr / symja_android_library

:coffee: Symja - computer algebra language & symbolic math library. A collection of popular algorithms implemented in pure Java.
https://matheclipse.org/
GNU General Public License v3.0
384 stars 87 forks source link

[BUG] `Minors` returns wrong result #766

Open tranleduy2000 opened 1 year ago

tranleduy2000 commented 1 year ago

Input:

Minors({{1,4,7},{3,0,5},{-1,9,11}})

Expected result:

image

Current result:

{{-𝟣𝟤,-𝟣𝟨,𝟤𝟢},{𝟣𝟥,𝟣𝟪,-𝟣𝟫},{𝟤𝟩,𝟥𝟪,-𝟦𝟧}}
image
axkr commented 1 year ago

If you press the link "Use as a math function instead" you get the result which is implmented in Symja. Which is the definition from here:

Wolfram returns this: image

tranleduy2000 commented 1 year ago

Can you define a new function for linear algebra? Something like MatrixMinors

axkr commented 6 months ago

@tranleduy2000 many improvements are now implemented in Minors function in commits: 5bda05905e6353d33d764f739b0037c325477749, 3d016eab1e1f4c26dc4313a24bca2c2ea82a4ae9, 730be6a4239d5f2a60f35459d1b5b97446060d9a