Very rarely it is necessary to find the multiplicative inverse of a number in the ring of integers modulo p. Thie recipe handles those rare cases. That is, given x, an integer, and p the modulus, we seek a integer x^-1 such that x * x^-1 = 1 mod p. For example 38 is the inverse of 8 modulo 101 since 38 * 8 = 304 = 1 mod 101. The inverse only exists when a and p are relatively prime.
This program displays the contents of a matrix in a newly-generated Matlab figure for easy viewing and printing. The figure size, font size, and cell size are all sized according to both screen size and matrix size. Includes options for displaying...
The project contains classes for implementation of binomial option pricing model and Newton method for finding roots of a function in C++.
You are welcome to browse and download the source code.
Usage of Operator Overloading in C# is a tutorial for the beginners to know about the operator overloading feature in C#. Operator overloading is an object oriented feature which does not affect the actual meaning of the in-built operators of C#....
Boxing and Unboxing of Value Types in C#: What You Need to Know? is a web based tutorial in which author elaborates the concepts of boxing and unboxing value types. The author also explains the problem that occur while programming boxing and...
How do I create a string in C# is an article in which author demonstrates the procedure for constructing string using string builder. Here the author offers a code snippet, which helps in performing the above said process. ASP.NET programmers and...
Position determines the relative position of a planar point C with respect to a planar segment joining A and B. This is not intended for 3D points. Pos=0 =>the point C is collinear with A and B Pos=1=>the point C is above the...
Calculates the inverse I of a matrix A.
X = POWERM_PADE(A,P) computes the P'th power X of the matrix A, for arbitrary real P and A with no nonpositive real eigenvalues, by the Schur-Pade algorithm. [X,NSQ,M] = POWERM_PADE(A, P) returns the number NSQ of matrix square roots computed and...
This function plots a matrix in a scrolling window with sliders that control the center of the plotted region and the horizontal zoom ratio.
Tested under Matlab 5.3
The aim of this project is to develop a full implementation of OSGi R4 in C++. Currently, there are a lot of projects in the academy as in the industry written in C++ that could take advantage of the features described by the OSGi specification.
This code provides you a pluggable library for fast computation of mathematical expressions in C programs with x86 JIT compiler.
[h,varargout]=plotColumns(data,varargin) plots columns of a matrix as if each column is a time series
USAGE: plotColumns(data); [h] = plotColumns(t,data); [h] = plotColumns(t,data,{colors}); [h] =...
This function finds duplicate values along the first column of a matrix, averages the remaining rows, and removes the duplicate rows.
An implementation of data structures in C, for now there is a a dynamic list and stack, the rest are to come.
VMatrixLib is a little, handy, Java matrix library which implements a set of utility functions (such as calculus of the determinant of a matrix, calculus of the rank, inverse matrix, and many others..) that anyone who have to use matrices needs.
CVIDN is a set of class written in C# allowing design of Visual Studio's applications using the National Instruments Labwindows CVI toolkit.It contains a Visual Designer to create user interfaces like WinForms.
Visual Studio 2005, 2008(c) Addin and plugin manager- fast access to files with a code in active Solution- fast access to elements of a code in the current editor
I needed a version of the string.index(sub) function which returns a list of indices of ALL occurances of a substring in the string.
Is there a better/shorter/more efficient way to do this? Please share.
This function calculates column-wise mode values of a matrix. If there are no modes in a column, it returns NaN. Column mode values are stored in a cell array. This is a modified version of "fastmode.m" by Harold Bien. |