プリンキピア

第2章準備

2.4. Calculus2.4 微積分

For a long time, how to calculate the area of a circle remained a mystery. Then, in Ancient Greece, the mathematician Archimedes came up with the clever idea to inscribe a series of polygons with increasing numbers of vertices on the inside of a circle (Fig. 2.4.1). For a polygon with n vertices, we obtain n triangles. The height of each triangle approaches the radius r as we partition the circle more finely. At the same time, its base approaches 2πr/n, since the ratio between arc and secant approaches 1 for a large number of vertices. Thus, the area of the polygon approaches n⋅r⋅12(2πr/n)=πr2.
英語のヒント
長いあいだ、円の面積をどう計算するかは謎のままだった。やがて古代ギリシャで、数学者アルキメデスは、円の内側に、頂点の数を増やしながら一連の多角形を内接させるという巧みな考えを思いついた(図2.4.1)。頂点がn個の多角形では、n個の三角形が得られる。円を細かく分けるほど、各三角形の高さは半径rに近づく。同時に、その底辺は2πr/nに近づく。頂点の数が多いと、弧と割線の比が1に近づくからである。したがって、多角形の面積はn⋅r⋅12(2πr/n)=πr2に近づく。
Fig. 2.4.1図2.4.1
Finding the area of a circle as a limit procedure.
英語のヒント
極限の手続きとして円の面積を求める。
This limiting procedure is at the root of both differential calculus and integral calculus. The former can tell us how to increase or decrease a function’s value by manipulating its arguments. This comes in handy for the optimization problems that we face in deep learning, where we repeatedly update our parameters in order to decrease the loss function. Optimization addresses how to fit our models to training data, and calculus is its key prerequisite. However, do not forget that our ultimate goal is to perform well on previously unseen data. That problem is called generalization and will be a key focus of other chapters.
英語のヒント
この極限の手続きは、微分法と積分法の両方の根にある。前者は、関数の引数を操作することで、その値をどう増やしたり減らしたりできるかを教えてくれる。これは、深層学習で直面する最適化問題、つまり損失関数を減らすためにパラメータを繰り返し更新する問題で役に立つ。最適化は、モデルを訓練データにどう当てはめるかを扱い、微積分はその鍵となる前提知識である。しかし、究極の目標は未知のデータでうまくいくことだということを忘れないでほしい。その問題は汎化と呼ばれ、ほかの章の重要な焦点となる。
%matplotlib inline
import numpy as np
from matplotlib_inline import backend_inline
from d2l import torch as d2l