[Coco] Project Euler and the Coco

Art Flexser flexser at fiu.edu
Mon Nov 17 16:56:18 EST 2008


Thanks, interesting site.  So, the formula generates all Pythagorean triplets
that are primitive ones (i.e., not a scaled-up version of a smaller Pythagorean
triangle).

Art

On Mon, 17 Nov 2008, Mark McDougall wrote:

> Art Flexser wrote:
> 
> > Yes, that certainly beats the brute force method.  Though I'm not certain that
> > that formula for Pythagorean triangles generates all of them, rather than only
> > some.  So, it may be that some similar problems would not yield to that
> > approach.
> 
> <http://www.mcs.surrey.ac.uk/Personal/R.Knott/Pythag/pythag.html#mnformula>
> 
> Regards,
> 
> -- 
> |              Mark McDougall                | "Electrical Engineers do it
> |  <http://members.iinet.net.au/~msmcdoug>   |   with less resistance!"
> 
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
> 




More information about the Coco mailing list