TheAlgorithms / MATLAB-Octave

This repository contains algorithms written in MATLAB/Octave. Developing algorithms in the MATLAB environment empowers you to explore and refine ideas, and enables you test and verify your algorithm.
MIT License
373 stars 176 forks source link

Fix linear diophantine equation #80

Closed MaximSmolskiy closed 3 years ago

MaximSmolskiy commented 3 years ago

Current linear diophantine equation implementation has bug. In Octave and MATLAB percent symbol % isn't modulo operator. It is used for comments. mod is modulo operator.