Commit abbf029
committed
60 / 200 : narrow random rotation angle to avoid degenerate cases
`nr.randint(-180, 180)` could land on near-zero or near-±180° angles,
producing rotations close to identity or to a 180° flip. In both cases
the power-iteration example becomes ambiguous (no clearly dominant
eigendirection over a single rotation). Replace with a random choice
from `[-170, -10] ∪ [10, 170]` and import `random` accordingly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Clean ipynb 62019ec1 parent 2f308fa commit abbf029
1 file changed
Lines changed: 16 additions & 5 deletions
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
630 | 641 | | |
631 | 642 | | |
632 | 643 | | |
| |||
727 | 738 | | |
728 | 739 | | |
729 | 740 | | |
730 | | - | |
731 | | - | |
| 741 | + | |
| 742 | + | |
732 | 743 | | |
733 | 744 | | |
734 | 745 | | |
| |||
745 | 756 | | |
746 | 757 | | |
747 | 758 | | |
748 | | - | |
| 759 | + | |
749 | 760 | | |
750 | 761 | | |
751 | 762 | | |
752 | | - | |
| 763 | + | |
753 | 764 | | |
0 commit comments