Can?Can?Can?Can?

For everything that's not in any way related to PureBasic. General chat etc...
sec
Enthusiast
Enthusiast
Posts: 792
Joined: Sat Aug 09, 2003 3:13 am
Location: 90-61-92 // EU or ASIA
Contact:

Can?Can?Can?Can?

Post 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:
LarsG
Enthusiast
Enthusiast
Posts: 713
Joined: Mon Jun 02, 2003 1:06 pm
Location: Norway
Contact:

Post by LarsG »

I don't get it.. :roll:
what are you trying to do here?!?

-Lars

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
sec
Enthusiast
Enthusiast
Posts: 792
Joined: Sat Aug 09, 2003 3:13 am
Location: 90-61-92 // EU or ASIA
Contact:

Post by sec »

:oops: , is it imposible ?
User avatar
Ypser
User
User
Posts: 19
Joined: Wed Jun 18, 2003 9:13 am
Location: Germany
Contact:

Post by Ypser »

Does this code have any sense?
Last edited by Ypser on Fri Sep 05, 2003 1:40 pm, edited 2 times in total.
sec
Enthusiast
Enthusiast
Posts: 792
Joined: Sat Aug 09, 2003 3:13 am
Location: 90-61-92 // EU or ASIA
Contact:

Post 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
LarsG
Enthusiast
Enthusiast
Posts: 713
Joined: Mon Jun 02, 2003 1:06 pm
Location: Norway
Contact:

Post by LarsG »

This will never be true, will it?!?

-Lars

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post 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
LarsG
Enthusiast
Enthusiast
Posts: 713
Joined: Mon Jun 02, 2003 1:06 pm
Location: Norway
Contact:

Post by LarsG »

yes, but the other variable are never zero..

-Lars

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

For the original question my solutions would work, but not so for the loops above, that's true ;-)
sec
Enthusiast
Enthusiast
Posts: 792
Joined: Sat Aug 09, 2003 3:13 am
Location: 90-61-92 // EU or ASIA
Contact:

Post 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!
Post Reply