Results 1 to 2 of 2

Math Help - Numbers

  1. #1
    Newbie
    Joined
    Sep 2007
    Posts
    23

    Numbers

    Hi guys,

    I have the following 10 numbers:

    6.3822e-006
    2.511e-005
    2.5467e-005
    2.8725e-005
    0.00016884
    0.0028119
    0.00020491
    2.8006e-005
    2.796e-005
    0.00030903

    I would like to map these numbers to the range between 0 and 1 such that when we add them the result is 1.

    Any ideas?

    Thanks

    Alex
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by tecne View Post
    Hi guys,

    I have the following 10 numbers:

    6.3822e-006
    2.511e-005
    2.5467e-005
    2.8725e-005
    0.00016884
    0.0028119
    0.00020491
    2.8006e-005
    2.796e-005
    0.00030903

    I would like to map these numbers to the range between 0 and 1 such that when we add them the result is 1.

    Any ideas?

    Thanks

    Alex
    Add them all up to get a total t. Now devide all the numbers by t.


    Code:
    >n=[6.3822e-006;2.511e-005;2.5467e-005;2.8725e-005;0.00016884;..
    >   0.0028119;0.00020491;2.8006e-005;2.796e-005;0.00030903]
      6.3822e-006 
       2.511e-005 
      2.5467e-005 
      2.8725e-005 
       0.00016884 
        0.0028119 
       0.00020491 
      2.8006e-005 
       2.796e-005 
       0.00030903 
    >
    >t=totalsum(n)
       0.00363633 
    >
    >nn=n/t
       0.00175512 
       0.00690531 
       0.00700349 
       0.00789945 
        0.0464314 
          0.77328 
        0.0563508 
       0.00770172 
       0.00768907 
         0.084984 
    >
    RonL
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 1
    Last Post: August 29th 2011, 02:18 AM
  2. Replies: 1
    Last Post: September 27th 2010, 03:14 PM
  3. Proof: All rational numbers are algebraic numbers
    Posted in the Number Theory Forum
    Replies: 1
    Last Post: September 5th 2010, 10:26 AM
  4. Replies: 3
    Last Post: April 10th 2008, 05:58 PM
  5. Proving Lucas Numbers and Fibonacci Numbers
    Posted in the Discrete Math Forum
    Replies: 2
    Last Post: March 18th 2008, 11:33 PM

Search Tags


/mathhelpforum @mathhelpforum