Page 1 of 1

Can?Can?Can?Can?

Posted: Fri Sep 05, 2003 5:27 am
by sec

Code: Select all

deftype.l a,b,c,d
pow(a,4) +pow(b,4) +pow(c,4) = pow(d,4)  
:D
i run on my Pentium 155mhz, ahah :evil:
can find a,b,c,d :evil:

Posted: Fri Sep 05, 2003 10:40 am
by LarsG
I don't get it.. :roll:
what are you trying to do here?!?

-Lars

Posted: Fri Sep 05, 2003 12:44 pm
by sec
:oops: , is it imposible ?

Posted: Fri Sep 05, 2003 12:53 pm
by Ypser
Does this code have any sense?

Posted: Fri Sep 05, 2003 1:03 pm
by sec
Ypser wrote:Does this code have any sense?
ahh,

Code: Select all

deftype.l a,b,c,d 
for a=1 to 255
for b=1 to 255
for c=1 to 255
for d=1 to 255
 if  pow(a,4) +pow(b,4) +pow(c,4) = pow(d,4) 
   debug a
   debug b
   debug c
   debug d
 endif
next d
next c
next b
next a

Posted: Fri Sep 05, 2003 1:21 pm
by LarsG
This will never be true, will it?!?

-Lars

Posted: Fri Sep 05, 2003 1:45 pm
by freedimension
There is an infinite number of solutions

0^4 + 0^4 + 0^4 + 0^4 = 0^4

1^4 + 0^4 + 0^4 + 0^4 = 1^4

. . .

0^4 + 0^4 + 0^4 + n^4 = n^4

Posted: Fri Sep 05, 2003 1:47 pm
by LarsG
yes, but the other variable are never zero..

-Lars

Posted: Fri Sep 05, 2003 1:50 pm
by freedimension
For the original question my solutions would work, but not so for the loops above, that's true ;-)

Posted: Fri Sep 05, 2003 4:18 pm
by sec
freedimension wrote:There is an infinite number of solutions

0^4 + 0^4 + 0^4 + 0^4 = 0^4

1^4 + 0^4 + 0^4 + 0^4 = 1^4

. . .

0^4 + 0^4 + 0^4 + n^4 = n^4
wow, but all number a,b,c,d greater zero!