Results 1 to 5 of 5

Thread: Pythagorean Triad

  1. #1
    Join Date
    Feb 2006
    Location
    Australia, NSW.
    Posts
    1,461
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default Pythagorean Triad

    Code:
    function Triad(a, b, c: extended): boolean;
    Var
      Total: Integer;
    begin
     total:= Trunc( Sqr(MaxE(MaxE(a, b), MaxE(b, c))) );
     if(Trunc(Sqr(MinE(a, b) + MinE(b, c))) = Total)then
       result:= true;
    end;
    Is it worth adding?.. Or not needed

  2. #2
    Join Date
    Feb 2006
    Location
    Under a rock.
    Posts
    1,351
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Hmmm, weird, I was juts learning this in school last week!
    Haha, I think it would be worth it?
    SRL Developer
    ◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘◘

  3. #3
    Join Date
    Feb 2006
    Posts
    381
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    what can it be used for ?

  4. #4
    Join Date
    Feb 2006
    Posts
    920
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Renax
    what can it be used for ?
    Well let me give you one example, maybe if you were working with the solar system and wanted to know if the work you done with Eratosthenes observations is correct?

  5. #5
    Join Date
    Feb 2006
    Location
    Australia, NSW.
    Posts
    1,461
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Lorax
    Well let me give you one example, maybe if you were working with the solar system and wanted to know if the work you done with Eratosthenes observations is correct?
    Exactly!

    Now, this will be perfect when runescape makes a new world called space ;D

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •