We study the thermodynamic behavior of an ideal gas of bosons trapped
in a three-dimensional anisotropic harmonic-oscillator potential. The
condensate fraction as well as the specific heat is calculated using t
he Euler-Maclaurin approximation. For a finite number of particles the
re is no phase transition, but there is a well-defined temperature al
which the condensation starts. We also consider condensation in lower
dimensions, and, for one-dimensional systems, we discuss the dependenc
e of the condensate fraction and heat capacity on the ensemble used.