Talk:Gauss-Jordan matrix inversion: Difference between revisions

→‎what's wrong (with my REXX program)?: thanks. program fixed for the specal case
m (→‎what's wrong (with REXX)?: added a comment.)
(→‎what's wrong (with my REXX program)?: thanks. program fixed for the specal case)
 
(5 intermediate revisions by 3 users not shown)
Line 1:
== what's wrong (with my REXX program)? ==
 
<strike>
::: I suggest to change header to: &nbsp; '''what's wrong with my REXX program?'''</strike> &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 09:30, 3 November 2018 (UTC)
:::: Done. &nbsp; &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 17:56, 3 November 2018 (UTC)
 
 
My REXX algorithm works nicely most of the time.
Line 137 ⟶ 142:
-----
<br>
:::Can any of the other programs handle this input correctly? --Walter Pachl 15:22, 3 November 2018 (UTC)
 
::::I ran it through the Perl 6 implementation and it works and is nominally correct. (If I invert the inverted matrix, I end up with the original.) I added it as another test case. See the last two tests under [[Gauss-Jordan_matrix_inversion#Perl_6]] --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 18:29, 3 November 2018 (UTC)
 
:::::Thank you, that helped. I fixed my program for the case that a.2.2=0.
My inverse matrix is the same as Perl 6's
<pre>
show 6 The inverse matrix
-4525/6238 2529/6238 -233/3119 1481/3119 -639/6238
1033/6238 -1075/6238 342/3119 -447/3119 871/6238
1299/6238 -289/6238 -204/3119 -390/3119 739/6238
782/3119 -222/3119 237/3119 -556/3119 -177/3119
-474/3119 -17/3119 -24/3119 688/3119 -140/3119
</pre>
<br>
Generalization of the REXX algorithm for ANY pivot=0 must be worked out (tbd) --Walter Pachl 19:58, 3 November 2018 (UTC)
2,289

edits