some simple numeric computations