Results 1 to 6 of 6
Like Tree6Thanks
  • 1 Post By Archie
  • 2 Post By Plato
  • 1 Post By romsek
  • 2 Post By DenisB

Thread: Generate Two Random Numbers

  1. #1
    Super Member harpazo's Avatar
    Joined
    Sep 2014
    From
    NYC
    Posts
    995
    Thanks
    42

    Generate Two Random Numbers

    Generate two random numbers that have a sum of 22. The sum of their squares is 172.

    My Set Up:

    Let x and y be the two numbers.

    x + y = 22
    x^2 + y^2 = 172

    Is this the correct system of equations?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Joined
    Dec 2013
    From
    Colombia
    Posts
    1,974
    Thanks
    712

    Re: Generate Two Random Numbers

    I don't think there are any such numbers, but your system looks correct to me.
    Thanks from harpazo
    Follow Math Help Forum on Facebook and Google+

  3. #3
    MHF Contributor

    Joined
    Aug 2006
    Posts
    22,334
    Thanks
    3223
    Awards
    1

    Re: Generate Two Random Numbers

    Quote Originally Posted by harpazo View Post
    Generate two random numbers that have a sum of 22. The sum of their squares is 172.
    My Set Up:
    Let x and y be the two numbers.
    x + y = 22
    x^2 + y^2 = 172
    Is this the correct system of equations?
    Yes CORRECT.
    Note that,
    $ y=22-x$
    $x^2+(22-x)^2=172$
    Last edited by Plato; Dec 21st 2018 at 08:44 AM.
    Thanks from topsquark and harpazo
    Follow Math Help Forum on Facebook and Google+

  4. #4
    MHF Contributor
    Joined
    Nov 2013
    From
    California
    Posts
    6,464
    Thanks
    2820

    Re: Generate Two Random Numbers

    Quote Originally Posted by Archie View Post
    I don't think there are any such numbers, but your system looks correct to me.
    not any real ones anyway
    Thanks from harpazo
    Follow Math Help Forum on Facebook and Google+

  5. #5
    MHF Contributor
    Joined
    Feb 2015
    From
    Ottawa Ontario
    Posts
    2,212
    Thanks
    488

    Re: Generate Two Random Numbers

    Yes. However "generate two random numbers" is confusing
    and should be simply: "find 2 numbers".

    Also, the example you're providing has no real solution:
    leads to the quadratic x^2 - 22x + 156 = 0
    which has a negative discriminant.

    EDIT: holy Toledo...3 answers in 6 minutes...
    we're tripping all over ourselves !!!
    Last edited by DenisB; Dec 21st 2018 at 08:50 AM.
    Thanks from topsquark and harpazo
    Follow Math Help Forum on Facebook and Google+

  6. #6
    Super Member harpazo's Avatar
    Joined
    Sep 2014
    From
    NYC
    Posts
    995
    Thanks
    42

    Re: Generate Two Random Numbers

    Thank you everyone.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. How to generate correlated nonnormal random numbers?
    Posted in the Advanced Statistics Forum
    Replies: 0
    Last Post: May 29th 2012, 01:30 PM
  2. Replies: 0
    Last Post: May 29th 2012, 01:25 PM
  3. Generate random X Y Coordinates within a square/rectangle
    Posted in the Advanced Statistics Forum
    Replies: 3
    Last Post: Dec 17th 2010, 04:43 AM
  4. Generate a random matrix given a condition number
    Posted in the Advanced Algebra Forum
    Replies: 2
    Last Post: Jan 1st 2010, 08:24 AM
  5. Replies: 4
    Last Post: May 7th 2009, 09:47 AM

/mathhelpforum @mathhelpforum