Philosophy in the age of Euler: science and enlightenment