[URL=http://imageshack.us/photo/my-images/96/equationr.gif/]
[/URL]
To prove that the roots of the above equation are x=2 and y=3, I wrote the following simple program and it works fine on a 64-bit Laptop-Ubuntu 10.10 with gfortran 95 compiler. In about 5 minutes or so, the compiler gives the results. However, Salford FTN95 Compiler (Plato3 IDE) on a 32-bit Desktop with Win XP/SP3 generates a run-time error stating 'Integer Arithmetic Overflow' both at line 4 and 6.
INTEGER X, Y
DOUBLE PRECISION A, B
DO 20 X=32767,1,-1
A=X**(X**(X**X))+74
DO 10 Y=32767,1,-1
B=(19-Y**X)*(Y**(X**Y))
IF (A-B) 10,30,10
10 CONTINUE
20 CONTINUE
30 WRITE (6, 40) X,Y
40 FORMAT(//'X=',I2,2X,'Y=',I2)
END
I would appreciate any suggestions or comments. Thanks and regards.
[/URL]