What problem am I trying to solve? I need to make sure that my number classifier doesn't identify an imperfect number as perfect.
我试图解决的问题是确保我的数字分类器不会将非完全数识别为完全数。
A more algorithmic definition for a perfect number is a number where the sum of the factors (excluding the number itself) equals the number.
更规则的完全数定义是因子(不包括该数字本身)之和等于该数字的数字。
A study of 1,000 women aged 18 to 45 found that just under half (49 per cent) believe that four is the perfect number of best friends to have.
一项对1000名年龄在18岁到45岁之间的女性开展的研究发现,近一半(49%)的女性认为拥有四个好朋友最理想。
I must decompose the problem and think about what "perfect number" means. I can easily come up with several steps required to discover a perfect number.
我必须分解问题并回想“完全数”的含义。
In this paper, the definitions of prime number and perfect number are introduced, and the largest of them having been found at present in the world are also described.
本文给出素数和完全数的定义,还给出了当前世界上最大的素数和完全数。
This code reports that my perfect-number algorithm works correctly, but it's very slow.
这段代码报告我的完全数算法工作正常,但是它非常慢。
Let's say that you've written your perfect-number finder TDD, and some other group within your company has written a test-after version of a perfect-number finder (an example appears in Part 1).
假设您已经编写了完全数查找程序的TDD版本,而您公司中的另一个开发组编写了完全数查找程序的后测试版本(第1部分中有一个示例)。
You have to make every single detail perfect and you have to limit the number of details.
就是让每个细节都很完美,你必须要限制细节的数量。
That's the problem domain to tackle: create a perfect-number finder.
这就是要处理的问题域:创建一个完全数查找程序。
Everything was here arranged in perfect order; each register had its number, each file of papers its place.
这儿的一切都井井有条。每一种档案都编着号码,每一夹文件都有固定的地方。
The trick was to know that his true nature lived, as perfect as an unwritten number, everywhere at once across space and time.
秘诀在于懂得自己的本性,尽善尽美得像一个没有写出来的数字,它超越时间和空间,无处不在。
Due to the complexity of real-world data relationships, it is not always possible for estimates to be perfect, but there are a number of tools and techniques available to improve them.
由于真实数据关系的复杂性,估计值不总是准确的,但是有许多工具和技术可以改进它们。
In Part 1, I wrote a version of a perfect-number finder using test-after development (writing the test after writing the code).
在第1部分中,我采用后测试开发方法(在编写代码之后编写测试)编写了完全数查找程序的一个版本。
There is a huge number of single ladies in Novgorod and each of them dreams of a perfect man. So, these are their stories.
在诺夫哥罗德(前苏联的一个城市名)有大量的单身女性梦想着获得一个完美的男人。那么我们来看看她们的故事吧。
I'm done with the test-driven version of the perfect-number finder; the entire class is shown in Listing 9.
最后,完成了完全数查找程序的测试驱动版本;完整的类见清单9。
With the availability of higher-order functions, the entire problem of determining if a number is perfect or not collapses to a couple of lines of code in Groovy, as shown in Listing 7.
由于高阶函数的可用性,确定数字是否完全的整个问题在Groovy中只需几行代码即可完成,如清单7所示。
The truth is that no index is perfect (there is a long argument to be had about whether housing costs are properly measured in the core number as well).
事实是没有一项指标是完善的(关于住房成本在核心指数中的测量是否恰当存在着长期争论)。
"A large number of my projects could hardly be described as perfect, yet were successful nevertheless," he says.
“我的很多项目都很难称得上完美,然而它们仍旧是成功的。”他说道。
Although a fair number of obese individuals may have a perfect metabolic profile, it appears they may still experience negative consequences of their excess weight.
虽然相当数量的肥胖人员可能拥有良好的新陈代谢水平,但是他们仍然会因为体重超标而面临很多负面的问题。
A long-running job — say, number crunching or a large compilation — is perfect to place in the background.
一个长时间运行的工作(例如,系统管理的数值计算或大型程序的编译)最适合放在后台。
Number one, this is not a perfect sphere, and only for spheres do these calculations hold that's number one.
其一,这不是完美球体,这是对完美球体的计算,这是原因一。
Take the number of SPF and multiply it by 10. That is the time that if you were under perfect conditions, you'd be safe from the sun's rays.
将SPF系数乘以10得出来的时间是你在涂防晒产品的情况下的保护时间。
Another common wedding dance number, it's the perfect song about finding love: "Right beside you is where I belong, from this moment on."
它是另一首常见的婚礼舞曲,完美的阐述了寻找真爱的主题:从那一刻起,我就应该守护在你身旁。
Arrays are perfect to use with lists that have a fixed number of elements that are always present. For example.
数组非常适合于与拥有固定数量元素的列表一起使用,而这些元素通常都是存在的。
And if you’re anything like me, you often don’t find the perfect solution until you’ve explored a number of dead ends.
如果你不了解我的想法,那你就走进死胡同了。
The opaque nature of a Web service method combined with the descriptive power of XML documents for data are perfect for integrating any number of remote operations.
Web服务的不透明性质与XML文档的数据描述能力相结合,对于集成任何数量的远程操作非常理想。
You can see this in the number and names of methods in the solution driven by TDD. Here are the methods in the final version of the TDD perfect-number categorizer
在TDD 驱动的解决方案中,方法的数量和名称反映了这种思想。
Favored by edgy designers like Number (N)ine, Undercover and Rick Owens, the trend included hooded jackets, big coats and some sort of bizarre headgear, perfect for hiding from the paparazzi.
许多前卫设计师都钟情于此,如Number (N)ine,Undercover和RickOwens。这一潮流的特点是兜帽夹克或宽大外套,以及各种诡异的、正好可以躲过狗仔队的帽子。
Favored by edgy designers like Number (N)ine, Undercover and Rick Owens, the trend included hooded jackets, big coats and some sort of bizarre headgear, perfect for hiding from the paparazzi.
许多前卫设计师都钟情于此,如Number (N)ine,Undercover和RickOwens。这一潮流的特点是兜帽夹克或宽大外套,以及各种诡异的、正好可以躲过狗仔队的帽子。
应用推荐