Students are trying to minimize the sum of the squares for a line of best fit activity.

I’d like for them to be able to “see” their lowest so far. Is there a way to keep track? It seems like variable assignments within the graph can’t be circular (I was trying to do something like `m_n = min(m_n, S_r)`

where `m_n`

is the current minimum and `S_r`

is the sum of the squares of the residuals. Then I was thinking maybe it should go in the script, but the script is only for populating values between components, right?

What ideas do y’all have? Also, I just started using this two days ago so please forgive my ignorance . Thank you!