2^x mod n = 1 acm競賽題 Give a number n, find the minimum x that satisfies 2^x mod n = 1. Input One positive integer on each line, the value of n. Output If the minimum x exists, print a line with 2^x mod n = 1. Print 2^? mod n = 1 otherwise. You should replace x and n with specific numbers. Sample Input 2 5 Sample Output 2^? mod 2 = 1 2^4 mod 5 = 1
標簽: mod satisfies minimum number
上傳時間: 2015-06-02
上傳用戶:qlpqlq
* * Input * bin_data : binary data * bin_size : binary data length * Mode : operation mode * BASE64_NeedCRLF ---- Need a CRLF every 64 base64-character * BASE64_NotCRLF ---- Need not CRLF between 64 base64-character * * Output * char data * char data length * * Return * 0: success -1: error
標簽: binary data operation bin_data
上傳時間: 2015-06-04
上傳用戶:ZJX5201314
Frequency Scale Conversion From f To f Scale frq2mel mel2frq mel The mel scale is based on the human perception of sinewave pitch. frq2erb erb2frq erb The erb scale is based on the equivalent rectangular bandwidths of the human ear. frq2midi midi2frq midi The midi standard specifies a numbering of semitones with middle C being 60. They can use the normal equal tempered scale or else the pythagorean scale of just intonation. They will in addition output note names in a character format.
標簽: Scale Conversion Frequency mel
上傳時間: 2015-06-07
上傳用戶:
Routine mampres: To obtain amplitude response from h(exp(jw)). input parameters: h :n dimensioned complex array. the frequency response is stored in h(0) to h(n-1). n :the dimension of h and amp. fs :sampling frequency (Hz). iamp:If iamp=0: The Amplitude Res. amp(k)=abs(h(k)) If iamp=1: The Amplitude Res. amp(k)=20.*alog10(abs(h(k))). output parameters: amp :n dimensioned real array. the amplitude-frequency response is stored in amp(0) to amp(n-1). Note: this program will generate a data file "filename.dat" . in chapter 2
標簽: dimensione parameters amplitude response
上傳時間: 2013-12-19
上傳用戶:xfbs821
Routine mar1psd: To compute the power spectum by AR-model parameters. Input parameters: ip : AR model order (integer) ep : White noise variance of model input (real) ts : Sample interval in seconds (real) a : Complex array of AR parameters a(0) to a(ip) Output parameters: psdr : Real array of power spectral density values psdi : Real work array in chapter 12
標簽: parameters AR-model Routine mar1psd
上傳時間: 2015-06-09
上傳用戶:playboys0
FlashEd 0.2 是個游戲引擎包,不過和Gamepackage不同的是: FlashEd is a 3d engine 只要功能如下: • Multiple Cameras • Collision Control • Rendering Effects • Gravity • Polygon Animation • Rounded Objects Rendering • Linkable Cameras And Objects • Shooting Control • Active Zone Control
上傳時間: 2015-06-10
上傳用戶:極客
尋找函數的全局極小值,global minimization of contrast function with random restarts the data are assumed whitened (i.e. with identity covariance matrix). The output is such that Wopt*x are the independent sources.
上傳時間: 2013-12-15
上傳用戶:康郎
This Program Is Designed To Simulate A Spatial Antenna Array System Working On The MUSIC Algorithm For The Angle Of Arrival Estimation And Null Steering Algorithm For The Weights Estimation To The Required Output Radiation Pattern .
標簽: Designed Algorith Simulate Program
上傳時間: 2014-01-02
上傳用戶:三人用菜
This applet illustrates the prediction capabilities of the multi-layer perceptrons. It allows to define an input signal on which prediction will be performed. The user can choose the number of input units, hidden units and output units, as well as the delay between the input series and the predicted output series. Then it is possible to observe interesting prediction properties.
標簽: capabilities illustrates multi-layer perceptrons
上傳時間: 2015-06-17
上傳用戶:lnnn30
Rotating shafts experience a an elliptical motion called whirl. It is important to decompose this motion into a forward and backward whil orbits. The current function makes use of two sensors to generate a bi-directional spectrogram. The method can be extended to any time-frequency distribution % % compute the forward/backward Campbell/specgtrogram % % INPUT: % y (n x 2) each column is measured from a different sensor % /////// % __ % |s1| y(:,1) % |__| % __ % / \ ________|/ % | | | s2 |/ y(:,2) % \____/ --------|/ % % Fs Sampling frequnecy % % OUTPUT: % B spectrogram/Campbel diagram % x x-axis coordinate vector (time or Speed) % y y-axis coordinate vector (frequency [Hz])
標簽: experience elliptical decompose important
上傳時間: 2015-06-23
上傳用戶:372825274