image thumbnail

updated 24 days ago

Variable Precision Integer Arithmetic by John D'Errico

Arithmetic with integers of fully arbitrary size. Arrays and vectors of vpi numbers are supported. (finite field, integer, biginteger)

demo_vpi

base2vpi(B,base)

bin2vpi(B)

image thumbnail

updated 11 months ago

mat2num by Kashi Khorasani

This function converts the input (matrix) into an integer/number comprised of all of the digits. (num2mat, mat2num, vector)

mat2num.m

image thumbnail

updated 11 months ago

num2mat by Kashi Khorasani

This function converts the input (integer) into a matrix comprised of all of the integer's digits. (num2mat, mat2num, factory)

num2mat.m

image thumbnail

updated 1 year ago

Random Integer Generator by Edward Zechmann

This program quickly outputs n random integers in the specified range from a to b. (random, random integer, integer)

[ndraw, count, count2, error]=rand_int(a, b, n, sorted, n...

image thumbnail

updated 1 year ago

Three different bijections or pairing functions between N and N^2 (including Cantor polynomials) by Laurent Duval

Pairing functions: encoding of two natural numbers into a single natural number (and vice-versa) (bijection, integer, cantor polynomials)

Bijection_Pairing_N_N2(index_In,flag_Pair)

image thumbnail

updated 1 year ago

Insert commas into numbers by Jack Peterson

Insert commas into numbers. (comma, number, integer)

insert_commas(N)

image thumbnail

updated 2 years ago

Surrogate Model Optimization Toolbox by Julie

Surrogate model optimization algorithm for computationally expensive global optimization problems (global optimization, surrogate model, derivativefree)

BumpinessMinSampling(Data, maxeval, Surrogate, lambda, ga...

CandValue=PredictFunctionValues(Data,Surrogate,CandPoint,...

CandidatePointSampling(Data,maxeval,Surrogate,lambda,gamm...

image thumbnail

updated almost 3 years ago

Recursive Integer Guessing Game by Adam Gripton

A recursive algorithm that queries an objective function to guess an unknown integer. (guess, game, function)

z=guessgame(isleq,n,k)

image thumbnail

updated 3 years ago

This program finds prime numbers manually by nathanial hapeman

matlab already has a function to do this but i wanted to see if i could code it manually (prime, for, while)

prime_numbers.m

image thumbnail

updated almost 4 years ago

vectorized fibonacci by Michael Völker

Given any integer array n, compute an array with the nth fibonacci numbers. (fibonacci number, integer, golden ratio)

fibonacci(n)

image thumbnail

updated 4 years ago

WWW.RANDOM.ORG random integers/sequences/strings by Oleg Komarov

Get true random integers, sequences or strings (rand, integer, randi)

randorg(n, range, varargin)

seqorg(range, varargin)

strorg(n, len, varargin)

image thumbnail

updated 4 years ago

Unique Random Integer List by Ibraheem Al-Dhamari

A simple function that produce unique random Integer List (unique, integer, random)

r=myrand(a,b)

image thumbnail

updated almost 5 years ago

space125: Almost equally spaced points in logarithmic space by Petr Pošík

Generate points ..., 1, 2, 5, 10, 20, ... often useful for log-plots when integer values needed. (semilogx, semilogy, loglog)

space125: Almost equally spaced points in logarithmic space

space125(a,b)

image thumbnail

updated 5 years ago

num2vpi - Converts input exactly into vpi by James Tursa

Converts double inputs larger than 2^53-1, or char inputs with exponents, exactly into vpi. (vpi, variable, precision)

num2vpi(x)

image thumbnail

updated 5 years ago

Linear Mixed Integer Program Solver by Thomas Trötscher

Solve linear mixed integer problems with a branch and bound method. (mixed integer program, mip, linear programming)

lpr.m

mipoptions.m

miprog.m

image thumbnail

updated 5 years ago

isodd: a pedestrian parity checker by us

ISODD returns TRUE for integers of any numeric MATLAB class that are not evenly divisible by 2 (integer, parity, odd)

isodd.m

image thumbnail

updated 6 years ago

Find Numbers in a String by Edward Zechmann

Finds flaoting point numbers in a string including: complex, real, integers, and currency (dollars). (strings, numbers, string)

[nums, matches]=find_nums(str, flag1, decimal_point, comp...

image thumbnail

updated 6 years ago

Partitions of an integer by John D'Errico

List all partitions of an integer (partitions, integer, partition)

partitions_demo

partitions(total_sum,candidate_set,max_count,fixed_count)

image thumbnail

updated 6 years ago

Integer computation extended beyond 32-bit by Steven Huang

compute integer arithmatic beyond 32-bit, Matlab's limit (integer, computation, extend)

image thumbnail

updated almost 7 years ago

int2strz.m by Carlos Adrian Vargas Aguilera

Same as int2str but with zero padding to the left. (strings, int2str, sprintf)

image thumbnail

updated almost 7 years ago

SWIDDER virtual 2D-slider by Vassili Pastushenko

virtual 2D slider for GUI integer or float, NaN below minX, minY (data exploration, 2d slider, gui)

cheer(N)

o_o(arg)

yx=slidder(varargin)

image thumbnail

updated almost 7 years ago

List Factors by Jeff Miller

List all integer factors of a number (factors, factorization, integer)

[allfactors]=listfactors(x)

image thumbnail

updated 7 years ago

intbitcopy and uintbitcopy by James Tursa

Exact bit copy of variable into signed int__ or unsigned uint__ of same element size (external interface, integer, bit)

intbitcopy.m

uintbitcopy.m

image thumbnail

updated 7 years ago

writereg.m by Alex Nelson

write string and integer values to Windows Registry (external interface, windows registry, regedit)

image thumbnail

updated 7 years ago

Integer order radial-2D Gaussian function. by Adam Wyatt

Generates a 'radial' Gaussian function in 2D of any positive integer order. (integer, radial, 2d)

gauss2D_R(X, Y, dx, dy, theta, order)

image thumbnail

updated 7 years ago

Find base-b expansion of an integer by Dimitri Shvorob

(Cf. DEC2BASE) (base, expand, expansion)

image thumbnail

updated 7 years ago

Two's Complement by Chad Webb

Compute the two's complement value of an unsigned integer (twos complement, compute, utility)

image thumbnail

updated almost 8 years ago

ISWHOLE by Mukhtar Ullah

True for integers(whole numbers). (integer, whole number, true)

image thumbnail

updated 8 years ago

roundd.m by Carlos Adrian Vargas Aguilera

Rounds an array up to N digits from the left. (matrices, round, integer)

image thumbnail

updated 8 years ago

Multidimensional interpolation with integer inputs by Steve Eddins

Multidimensional interpolation supporting integer inputs without converting to double (approximation, interpolation, multidimensional inte...)

iminterpn(varargin)

image thumbnail

updated almost 9 years ago

RandIntegers by Skynet

Selects random integers between and inclusive of specified lower and upper limits. (rand, random, int)

randintegers.m

image thumbnail

updated almost 9 years ago

Morphological Character Recognition by Jahanzeb Rajput

INTREC Performs morphological character recognition (morphology, segmentation, character recognition)

intrec(Z)

image thumbnail

updated 9 years ago

Persistent Counters by Jøger Hansegård

Create counters that keep their values even if your functions are interrupted for some reason. (persistent counter, create, integer)

counterdelete.m

counterexists.m

counterinc.m

image thumbnail

updated 10 years ago

ISPR - Use Java to determine arbitrarily large probable primes by Michael Kleder

Use a Java to rapidly determine whether an arbitrarily large positive integer is a prime (symbolic math, probable, prime)

image thumbnail

updated 10 years ago

MYRANDINT -- Random Integer Generation by David Fass

Random integers drawn uniformly from a specified set. (statistics, probability, random)

image thumbnail

updated 10 years ago

partitiontable.m by David Terr

Given a nonnegative integer n, compute a table of the unrestricted partition function p(m) for m<=n. (symbolic math, partition function, nonnegative)

image thumbnail

updated 10 years ago

Fibonacci.m by David Terr

Given an integer n, return the nth Fibonacci number. (symbolic math, fibonacci number, integer)

Contact us