When I double-click this script to run it, the terminal output is mixed up in the wrong order and formatted incorrectly. This problem does not occur when I run the script from the commandline.
Ignore my weird attempt at linear algebra - the terminal is the problem here.
Python version info: Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)] on win32 (I'm on Windows 11, using an Intel i9-12900H, 32gb of DDR5 DRAM, if it matters)
(image of my problem)