double reciprocal(double c)
{
static int n = 10;
if (--n)
{
double temp = reciprocal(c);
return temp * (2 - temp * c);
}
return c / 2;
}
這個程序只能求大於0小於2的倒數,因爲0<cy0<1,而程序選取y0=1/2,所以0<c<2.
double reciprocal(double c)
{
static int n = 10;
if (--n)
{
double temp = reciprocal(c);
return temp * (2 - temp * c);
}
return c / 2;
}
MacDown不顯示刪除線 原因是因爲MacDown有一些拓展配置,可以配置是否顯示一些markdown的格式。 解決: 進入macDown的偏好設置-Markdown-在刪除線的一欄打上勾就行了
Yet Another KMP Problem locked by Stonefeang Problem Submissions Leaderboard Discussions Editorial