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.
2 parents f22da2b + df6a5ed commit 9d2f4d6Copy full SHA for 9d2f4d6
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