Tips for teaching mathematics with experiments?

I am teaching a first-linear-algebra course for mostly undergraduate Computer Science and Data Science students. Occasionally, I tried to do a bit computer experiments in class and ask students to guess what a theorem should be. But I noticed that students do not seem to be very engaged in the experiments. I guess the problems may be

• I am the one doing the experiment. So they cannot do much but just look.
• The experiments I am doing are numeric. So they do not look very interesting visually.

I wonder if anyone of you have tried similar things, and if you have learned how to make such experiments work better.

One example of such experiments would be that I compute eigenvalues of a random diagonal matrix with computer, and asks students to guess the answer from observing such computations.

• Does DS = Data Science? They’re QS at my institution. Feb 26, 2022 at 1:20
• Yes DS is data science.
– user11702
Feb 26, 2022 at 1:33
• Can you give us examples of these experiments? What do they involve? Feb 28, 2022 at 11:18
• A nice thing about Sage Math (in addition to it having pretty much every part of our mathematics) is that it is written in Python, essentially, meaning using things like pandas and numpy from within Sage is easy. Or you could just set up a Jupyter notebook and try all of the languages you like! Mar 4, 2022 at 13:05
• Here is a LA text with a very large amount of Sage: linear.ups.edu Mar 4, 2022 at 13:05