火麟蚀日(309762472) 11:13:36
int funl(int m, int n)
{
while(m!=n)
{
if( m > n )
m = m - n ;
else
n = n - m;
}
}
}
求最大公约数的方法。
谁能跟我解释一下它的原理?
快乐永远(43984229) 11:14:29
辗转相除法
快乐永远(43984229) 11:14:42
中国古代求最大公约数的方法
火麟蚀日(309762472) 11:15:14
哦
快乐永远(43984229) 11:15:51
除,是"扣除","减掉"的意思.原理很好懂,
快乐永远(43984229) 11:16:05
假设2个数A,B
快乐永远(43984229) 11:16:18
公约数 t
快乐永远(43984229) 11:16:44
A=at B=bt
那么A-B=(a-b)t
快乐永远(43984229) 11:17:05
所以A和B的查必然也可以用t整除
火麟蚀日(309762472) 11:17:24
哦,谢谢了
标签:数学
summary of 2005.8.1-8.5
Stop learning Probability Statistics because of lacking Array and Combination knowledage;
Advanced Math:p10-p86.
A point:
x^a=a^alog,a,x
A difficult in the way:Array and Combination
When I learn Statistic,Array and Combination knowledge must be needed.But,I don't know them clear.A difficult has been in the way.
finished overview advance mathmatics once
It's only a 'take a look',There are most of the content I can't understand now,I must learn it very hard.
from today,I will begin to learn "Probability" when learning advanced math.
It's a easy way to learn math
I think it will be easy to review mathemastics.I have almost finished reviewing the Advanced Mathematics once:).But,it's only to get an overview of Math,so this progressing will be repeated not a few times.
make a quick review of Advanced Math
In order to learn Probability,I must make a quick review of Advanced Math.I found if I learn it carefully,it will take me a lot of time, and,to understand something in it at my first review is a bit difficult.So,the iteration method should be imported in my learning it.
After two weeks' tuning,I will start a new learning phase.
remember some triangle functions
(1)sinA+sinB=2sin((A+B)/2)cos((A-B)/2);
(2)sinA-sinB=2cos((A+B)/2)sin((A-B)/2);
(3)cosA+cosB=2cos((A+B)/2)cos((A-B)/2);
(4)cosA-cosB=-2sin((A+B)/2)sin((A-B)/2);
I haven't finish today's learning plan-only finished 4 pages of 10 pages.That's ok,I am a lazy man today.I am not a machine.
I'll begin to learn Mathematics
Learning math has been started.
An initial plan,root on the book,ten pages a day.'A' first.
Today,it is a first ten pages.
Persist,I will finish it.
Wish me successful.
Mathematics(数学)
From a viewpoint,Mathematics is one of the bases of the program.