Name
number_solvelinmod — Solves a linear modular equation.
Calling Sequence
x = number_solvelinmod ( a , b , n )
Parameters
- a :
a 1x1 matrix of floating point integers, must be positive
- b :
a 1x1 matrix of floating point integers, must be positive
- n :
a 1x1 matrix of floating point integers, must be positive
- x :
a 1x1 matrix of floating point integers
Description
Returns the row vector of all x such that
Examples
number_solvelinmod ( 14 , 30 , 100 ) // [95 45]
number_solvelinmod ( 3 , 4 , 5 ) // 3
number_solvelinmod ( 3 , 5 , 6 ) // []
number_solvelinmod ( 3 , 6 , 9 ) // [2 5 8]
Bibliography
"Introduction to algorithms", Cormen, Leiserson, Rivest, Stein, 2nd edition
Authors
Copyright (C) 2009 - 2010 - DIGITEO - Michael Baudin |