mathematic pendel