Integers
NUMREGPOLY Number of Intersection Points and Regions Made By The Diagonals of a Regular Polygon [A,B,I,R]=numregpoly(N) for integer n returns the following: A: Vector of number of points inside the regular n-gon other than the center where exactly k lines meet B: Vector of number of k-tuples of...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): Number of Intersections Regular Polygon Download |
RANDPERMFULL(N) is a random complete or full permutation of the integers from 1 to N; each integer is randomly assigned to an index position that is different from its value. In other words R = RANDPERMFULL(N) creates a row vector R, such that R(j) ~= j for all j=1:N. This type of permutation is...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): RANDPERMFULL (derangement) Download |
15th July, 2005 : Poly_POWER.m is now corrected !So, for most reasonable cases of Multiple Roots including Multiple Real Roots, Poly_POWER.m should now work. ********************Functional Description of Ch_Rem_Thr_Poly.m :Assume that we need to find a solution c_soln_Polysuch that it satisfies...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 112.64 KB | Download (44): Chinese Remainder Theorem for Polynomials Download |
Euler_Phi.zip is a suite of the foll Programmes :1) Euler_Phi (n) returns the no of positive integers less than n which are prime to n.2) a_k_mod_m_LCM_Method (a, m, k) : Imagine computing mod(14^26, 45) or mod(56^3005, 1125).This programme computes a_k_mod_m = mod (a^k, m) when a and m are...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): Euler_Phi and Its Applications Download |
This programme is an application of the Chinese Remainder Theorem for Integers - for obtaining a solution to the "k-threshold system for sharing a secret". The concept is explained in the book "A course in Number Theory and Cryptography by Neal Koblitz" in Ch 1, Prob 24 / P27 and it's solution in...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (48): k-threshold system of deciphering N Download |
groups_euclid calls gp_euc and euclid to separate a set of harmonics into families or groups of related harmonics, each with its own fundamental tone. The euclid() function accepts two real numbers with uncertainty intervals, and returns their greatest common divisor (gcd), also a real number....
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 1.31 MB | Download (44): groups_euclid Download |
This m-file generates a random sequence of m simulations of k integers from a multinomial distribution with n trials and k outcomes, where the probability for each simulation is, n!------------------------- doOCop1^n1doOCop2^n2doOCo..doOCopk^nk .n1!doOCon2!doOCo..doOConk!Then, a single sample...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): multrnd Download |
Functions that checks if a number is odd or even.(This is a little bit more complicated than using "mod(x, 2)" if you want error handling for certain cases.)The function can handle double, single, and integer classes, as well as arrays of these.* An error is raised if a floating point number is...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): Functions that checks if a number is odd or even Download |
These programs were developed for fast conversions between binary and decimal integers (there are other programs by fellow Matlab-users, dealing with fractions). They can be useful when the binary numbers are in vector form instead of strings.b2d takes a binary number in the form of an array and...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Efficient convertors between binary and decimal numbers Download |
The hamming distande is the number of positions at which the corresponding symbols are differentsee http://en.wikipedia.org/wiki/Hamming_distance
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Hamming distance between two integers Download |
This is an emulator for the machine described in Computer Science: An Overview, 10th edition, by J. Glenn Brookshear (Pearson Education, 2008). It is extended with some additional instructions and the machine is equipped with a bitmapped display.The emulator is intended for teaching and learning....
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 102.4 KB | Download (40): Extended Brookshear Machine emulator and assembler Download |
SHOWREGIONS(L,N) displays the regions of the label matrix L corresponding to the indices listed in the vector N. L is a label matrix generated by the functions BWLABEL or WATERSHED, and N is a vector of indices (positive integers, and zero).
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): showregions.m Download |
The function's algorithm uses Gaussian integer factorization and variable precision integers.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (47): Sumsqint Script Download |
AQAppStateMachine is designed to assist the development of applications with some fairly intricate state requirements. The idea is that the state itself is stored as an n-bit bitfield, and that the application can define certain ranges of this bitfield to refer to state flags. These flags can be...
Platforms: Mac
License: Freeware | Size: 92.16 KB | Download (36): AQAppStateMachine Download |
ImLab is a free open source graphical application for Scientific Image Processing that runs in Windows, Linux and many other UNIX systems. It supports multiple windows, data types including 32 bit integers, 32 bit real numbers and complex numbers. It is implemented in C++ and also in C to provide...
Platforms: Mac
License: Freeware | Size: 1.19 MB | Download (38): ImLab Download |
GLUI is a GLUT-based C++ user interface library which provides controls such as buttons, checkboxes, radio buttons, and spinners to OpenGL applications. It is window-system independent, relying on GLUT to handle all system-dependent issues, such as window and mouse management. Features of the...
Platforms: *nix
License: Freeware | Size: 604.16 KB | Download (36): GLUI User Interface Library Download |
This is a demonstration project which renders ALSA audio samples (16-bit integer streams) using (core) OpenGL. It is intended to serve as sample code for setting up shader-based rendering of basic data-sets (in this case, a ring-buffer of 16-bit integers). The code is currently just "get it done"...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (49): Sill-E-Scope Download |
Bit::Vector is an efficient bit vector, set of integers and "big int" math library. CLASS METHODS Version $version = Bit::Vector->Version(); Word_Bits $bits = Bit::Vector->Word_Bits(); # bits in a machine word Long_Bits $bits = Bit::Vector->Long_Bits(); # bits in an unsigned long new...
Platforms: *nix
License: Freeware | Size: 133.12 KB | Download (40): Bit::Vector for Linux Download |
Datarray: Numpy arrays with named axes ======================================== Datarray provides a subclass of Numpy ndarrays that support: - individual dimensions (axes) being labeled with meaningful descriptions - labeled 'ticks' along each axis - indexing and slicing by named axis -...
Platforms: *nix
License: Freeware | Size: 51.2 KB | Download (38): Datarray Download |
Collatz tool is a little application to find numbers of collatz problem and modified collatz problems. You can modify the collatz factor, count of max. calculations, output. Done with C++ and bigInt Library for arbitrary precision integers.
Platforms: *nix
License: Freeware | Size: 266.24 KB | Download (33): Collatz Tool Download |