07-Jan-2022 19:04:38 diophantine_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test diophantine(). diophantine_test01(): Solve one Diophantine equation in two variables. 91*x1+21*x2 = 7 Any right hand side must be a multiple of d = 7 A particular solution v: 1 -4 General solution x = v + W*c, where W is: -3 13 The residual for the particular solution with c=0 is 0 diophantine_test02(): Solve one Diophantine equation in three variables. 6*x1-14*x2+21*x3 = 11 Any right hand side must be a multiple of d = 1 A particular solution v: -11 11 11 General solution x = v + W*c, where W is: 0 7 3 0 2 -2 The residual for the particular solution with c=0 is 0 diophantine_test03() Solve one Diophantine equation in three variables. 12*x1+9*x2+7*x3 = 60 Any right hand side must be a multiple of d = 1 A particular solution v: 180 0 -300 General solution x = v + W*c, where W is: 1 -7 1 0 -3 12 The residual for the particular solution with c=0 is 0 diophantine_test04(): Solve one Diophantine equation in three variables. 6*x1+15*x2+10*x3 = 60 Any right hand side must be a multiple of d = 1 A particular solution v: 60 60 -120 General solution x = v + W*c, where W is: 0 -5 -2 0 3 3 The residual for the particular solution with c=0 is 0 (28,12): 6 0 + 15 4 + 10 0 = 60 (29,11): 6 5 + 15 2 + 10 0 = 60 (29,12): 6 0 + 15 2 + 10 3 = 60 (30,10): 6 10 + 15 0 + 10 0 = 60 (30,11): 6 5 + 15 0 + 10 3 = 60 (30,12): 6 0 + 15 0 + 10 6 = 60 diophantine_test(): Normal end of execution. 07-Jan-2022 19:04:38