And it goes through some very advanced subjects in both. It basically prepares you to be an engineer in whatever field you choose, be it a structural engineer, or a computer scientist.
I studied mathematics in the UK and can confirm I learnt a lot about fields and other forms of linear and abstract algebras
But nobody is holding you back from visiting 'real' math lectures ;)
That's simply not true. It depends entirely on the particular institution and its roots.
There are two origins of CS in German universities: electrical engineering and maths. At universities where CS originated as a subfield of maths, undergrad CS education is very similar to a maths undergrad to the point that most of the tests/mid-terms are basically identical between CS and maths.
If on the other hand CS came from the electrical engineering department, the focus is significantly less on maths and the lectures are very different indeed.
So you'd have to look at the history of each university and where the CS department originated to find out.
Ah, I see, thanks for the information.
Which university would be an example for the latter?
Mathematics (I started a PhD but left academia in favour of starting a company). My focus was on category theory / algebra.