Radu Angelescu

nov. 13, 2016

The road to wisdom, bfgs nlp

First, let me tell you about the newsletter button I added :D . You can subscribe to get notified when I post :). It’s down and right, please feel compelled to press it :D .

The road to wisdom?—Well, it’s plain

and simple to express:

Err

and err

and err again,

but less

and less

and less.

— Piet Hein

The above words are from a grook I like.

Sometimes I spend all day trying to count

the leaves on a single tree. To do this I

have to climb branch by branch and

write down the numbers in a little book.

So I suppose, from their point of view,

it’s reasonable that my friends say: what

foolishness! She’s got her head in the clouds

again.

But it’s not. Of course I have to give up,

but by then I’m half crazy with the wonder

of it — the abundance of the leaves, the

quietness of the branches, the hopelessness

of my effort. And I am in that delicious

and important place, roaring with laughter,

full of earth-praise.

-Mary Oliver,Foolishness? No, it’s not

Autumn is great in Romania, lots of beautiful light and nice colored leafs. I enjoyed great walks in the park, but naturally I started thinking about: what would it take for a machine to detect leafs in a picture. I actually don’t know how natural this thought is :)) but I said it’s a good problem for the weekend, brushing up on my maths and maybe if I could write it in a tutorial manner it could help somebody.

This article will not be about poems, of course, but instead it will be about implementing a technique that enables you to get to where you want to be :). Following the MUI article I felt like I needed to do something about nonlinear optimisations. [Continue Reading..]

dec. 29, 2015

Implementing a simple top down racing game ai controller

We have the procedural track, we have the ghysics car model, let’s make a simple top down racing AI! Above you can see me play with the basic AI (I am the red one that always ends up hitting the wall :) ) [Continue Reading..]

dec. 28, 2015

Top down racing car physics model using box2D

Today’s article is about implementing a simple, easy configurable car model with the Box2D physics library. See above video of me playing with the new model. [Continue Reading..]

dec. 15, 2015

Fast polynomial evaluation

I guess everybody knows what a polynomial is.

Polynomials are really cool and used all over the place in programming. Evaluating a polynomial is really important, so how should we do it?

First of all lets see how the polynomial function looks like:

\(a_n x^n + a_{n-1} x^{n-1} + \dots + a_2 x^2 + a_1 x + a_0\) ... [Continue Reading..]