This book is devoted to computer-based modeling in cardiology, by taking an educational point of view, and by summarizing knowledge from several, commonly considered delimited areas of cardiac research in a consistent way. First, the foundations and numerical techniques from mathematics are provided, with a particular focus on the finite element and finite differences methods.