## Hello World

So this is my first post and any real “nerd” will know why I named my post “Hello World”. Many years ago, I dabbled in a little bit of computer programming and the first program you ever write, as kind of a rite of passage, is to make the screen say “Hello World”. Needless to say, it wasn’t always easy, but nothing worthwhile in life ever is. At times, I really did want to pull my hair out though, with things like syntax errors. Firstly, I had to work out what a syntax error was… Basically, in layman’s terms, it’s like making a grammar or punctuation error in an essay. Secondly, I needed to find this syntax error (or errors), most of the time it was a missing semi-colon, in my thirty or forty lines of code. Did I mention that the technology didn’t even give you a hint as to where you might begin to look for it.…

## Mathematica details of the cooking with mathematics post

Edit: If you want to see the full code, I include everything in this post in the Mathematica file here.

I promised previously that we would go into depth into the graph theory and food calculations, so today we will do just that. This will be Mathematica heavy, so really this is only aimed at those who have played around with the Mathematica programming language.

I’ve been using this language now for over a decade, and while it is not the fastest language on the market for doing numerics-heavy calculations, it is an incredibly versatile language, and for getting code written fast, it’s hard to beat!

I tend to code in what is called a functional programming style (ideal for Mathematica), which doesn’t use loops as you would normally find in a procedural language. Perhaps the most oft used coding syntax you will see below is of the form:

somefunction[#]&/@{el1,el2,el3,el4…}

which takes the elements of a list and passes them one by one into a function.…