Monday, October 21, 2013

Happy Birthday Whitey Ford


This... This is a black day for baseball.

Monday, October 14, 2013

Flatten a square matrix in Mathcad

Mathcad is awful,

If you like me are being forced to use Mathcad after several blissful years of Mathematica then you get very sad very fast.

Here is a function to flatten a square array of square arrays in Mathcad (click to pop)


It could be extended to non-square arrays by adding a few more arguments. The advantage over the stuff on this page (current top google hit : http://communities.ptc.com/thread/38326 ) is no if-else statements and it works on matrices, not just vectors. Note the ORIGIN is set to 0

More importantly the whole mess can be avoided with creative use of the augment and stack function for array building