数字运算,判断一个数是否接近素数 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in base b is a Niven number if the sum of its digits divides its value. Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or not. Input Each line of input contains the base b, followed by a string of digits representing a positive integer in that base. There are no leading zeroes. The input is terminated by a line consisting of 0 alone. Output For each case, print "yes" on a line if the given number is a Niven number, and "no" otherwise. Sample Input 10 111 2 110 10 123 6 1000 8 2314 0 Sample Output yes yes no yes no
上传时间: 2015-05-21
上传用户:daguda
The Hopfield model is a distributed model of an associative memory. Neurons are pixels and can take the values of -1 (off) or +1 (on). The network has stored a certain number of pixel patterns. During a retrieval phase, the network is started with some initial configuration and the network dynamics evolves towards the stored pattern which is closest to the initial configuration.
标签: model distributed associative Hopfield
上传时间: 2015-06-17
上传用户:l254587896
/* This program generates the DApkg.vhd file that is used to define * the DA filter core and gives its parameters and the contents of the * Distributed Arithmetic Look-up-table "DALUT" according to the DA algorithm
标签: generates the program define
上传时间: 2015-07-07
上传用户:wangchong
* 高斯列主元素消去法求解矩阵方程AX=B,其中A是N*N的矩阵,B是N*M矩阵 * 输入: n----方阵A的行数 * a----矩阵A * m----矩阵B的列数 * b----矩阵B * 输出: det----矩阵A的行列式值 * a----A消元后的上三角矩阵 * b----矩阵方程的解X
上传时间: 2015-07-26
上传用户:xauthu
libraw1394 is the only supported interface to the kernel side raw1394 of the Linux IEEE-1394 subsystem, which provides direct access to the connected 1394 buses to user space. Through libraw1394/raw1394, applications can directly send to and receive from other nodes without requiring a kernel driver for the protocol in question.
标签: 1394 the interface supported
上传时间: 2015-08-07
上传用户:徐孺
Cracking the Code - Wireless Programming with J2ME This book is based on the unique concept of cracking the code and mastering the technology.The technologies covered are J2ME version 1.0.2 and the applications are also tested on version 1.0.3 Beta.
标签: Programming the Cracking Wireless
上传时间: 2015-08-20
上传用户:fhzm5658
Following is a repost of the public domain make that I posted to net.sources a couple of months ago. I have fixed a few bugs, and added some more features, and the resulting changes amounted to about as much text as the whole program (hence the repost).一个编译器C代码,详见REDME。
标签: Following sources domain couple
上传时间: 2015-09-01
上传用户:manlian
The standard optimum Kalman filter demands complete knowledge of the system parameters, the input forcing functions, and the noise statistics. Several adaptive methods have already been devised to obtain the unknown information using the measurements and the filter residuals.
标签: parameters knowledge the standard
上传时间: 2013-12-17
上传用户:541657925
A new blind adaptive multiuser detection scheme based on a hybrid of Kalman filter and subspace estimation is proposed. It is shown that the detector can be expressed as an anchored signal in the signal subspace and the coefficients can be estimated by the Kalman filter using only the signature waveform and the timing of the desired user.
标签: multiuser detection adaptive subspace
上传时间: 2015-09-07
上传用户:xieguodong1234
These are some information and examples which are generation by C++. Through them we can acquire ABC Of C++ and get an great improvement.
标签: information generation are examples
上传时间: 2014-02-21
上传用户:784533221