Relative Content

Tag Archive for math

Array Multiplication and Division

I came across a question that (eventually) landed me wondering about array arithmetic. I’m thinking specifically in Ruby, but I think the concepts are language independent.

Array Multiplication and Division

I came across a question that (eventually) landed me wondering about array arithmetic. I’m thinking specifically in Ruby, but I think the concepts are language independent.

Array Multiplication and Division

I came across a question that (eventually) landed me wondering about array arithmetic. I’m thinking specifically in Ruby, but I think the concepts are language independent.

Array Multiplication and Division

I came across a question that (eventually) landed me wondering about array arithmetic. I’m thinking specifically in Ruby, but I think the concepts are language independent.

Array Multiplication and Division

I came across a question that (eventually) landed me wondering about array arithmetic. I’m thinking specifically in Ruby, but I think the concepts are language independent.

Array Multiplication and Division

I came across a question that (eventually) landed me wondering about array arithmetic. I’m thinking specifically in Ruby, but I think the concepts are language independent.

Documenting mathematical logic in code

Sometimes, although not often, I have to include math logic in my code. The concepts used are mostly very simple, but the resulting code is not – a lot of variables with unclear purpose, and some operations with not so obvious intent. I don’t mean that the code is unreadable or unmaintainable, just that it’s waaaay harder to understand than the actual math problem. I try to comment the parts which are hardest to understand, but there is the same problem as in just coding them – text does not have the expressive power of math.