Edit: nevermind, found help elsewhere. Thanks anyway.

Printable View

- 07-04-2011, 02:02 PMfreddy92Producing Congruent Numbers
Edit: nevermind, found help elsewhere. Thanks anyway.

- 07-04-2011, 02:48 PMNorm
Sorry, I don't see your java programming problem. Can you explain what you are trying to do in java, show the code and explain what the problem you are having with coding in java?

Or is this a problem with the algorithm not working properly?

Quote:

I tried to use 1/2bh to get the congruent number. However, this didn't work

- 07-04-2011, 02:54 PMJosAH
You are only checking triangles with intergral sides; according to a definition, those sides have to be rational, e.g. 20/3, 3/2, 41/6 while the area must be an integral number. Those Pythagorean triples are the way to go (and multiples (or quotients) thereof).

kind regards,

Jos