We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f22da2b commit df6a5edCopy full SHA for df6a5ed
algorithms/maths/linear_diophantine_eqn.m
@@ -4,7 +4,7 @@
4
%Used in programming to find the exact solution exists or not.
5
6
function retval = linear_diophantine_eqn (a,b,c)
7
- if c % gcd(a,b)==0
+ if mod(c,gcd(a,b))==0
8
retval=true; % 1 represent yes it exist
9
else
10
retval= false; % 0 represent no it doesn't exist
0 commit comments