Defactoring: Difference between revisions

Cmloegcmluin (talk | contribs)
Cmloegcmluin (talk | contribs)
Line 86: Line 86:
=== well-hidden enfactoring ===
=== well-hidden enfactoring ===


Sometimes the hidden common factor is even harder to find. Consider the mapping {{vector|{{map|6 5 -4}} {{map|4 -4 1}}}}. To find this common factor, we need to linearly combine two of the first row {{map|6 5 -4}} and negative three of the 2nd row {{map|4 -4 1}} to produce {{map|0 22 -11}}. So we can see here that its common factor is 11.  
Sometimes the hidden common factor is even harder to find. Consider the mapping {{vector|{{map|6 5 -4}} {{map|4 -4 1}}}}. To find this common factor, we need to linearly combine two of the first row {{map|6 5 -4}} and negative three of the 2nd row {{map|4 -4 1}} to produce {{map|0 22 -11}}. So we can see here that its common factor is 11. But there's no clear relationship between the numbers 2 and 3 and the number 11. And so we can begin to see that the problem of identifying enfactored mapping may not be very simple or straightforward.
 
And so we can begin to see that the problem of identifying enfactored mapping may not be very simple or straightforward.


== defactoring methods ==
== defactoring methods ==