I have an nxn matrix where I want the term in position (n,n). The only way I can figure out how to do this is:
lastTerm = rombergMatrix[[Dimensions[rombergMatrix][]]][[Dimensions[rombergMatrix][]]];
Now of course, I could just make one call to dimensions, save it in a variable and just use that. But is there a better way to do this?
I come across a lot of situations where I mathematica code is just ugly, although never to this extent. I get the feeling I'm not using the language the way it was intended (i.e. there are alternative, better, ways). I'm a CS major and I started programming with C/C++, so perhaps it's just a different mindset?