Results 1 to 10 of 10

Thread: The function from hell.

  1. #1

    Thread Starter
    Hyperactive Member Q_Me's Avatar
    Join Date
    Dec 2001
    Posts
    327

    The function from hell.

    f(xy) = f(x) + f(y)

    f(2) = 0.3010

    Find f(3).
    53323737 15 743 313402 05 740313063. 17 15 4150 743 313402 05 140393403437 5203 743 30210.


  2. #2
    Junior Member
    Join Date
    Apr 2004
    Location
    heaven
    Posts
    17
    I don't think that the function is correct in the first place because no way that f(xy)= f(x) + f(y). Or maybe the question is missing.
    Programming is an Art, not a Science

    Not everything that can be counted counts, and not everything that counts can be counted.(EINSTEIN)

    For theose of us who believe in physics, the difference between the present, the past and the future is just an illusion.(EINSTEIN)

  3. #3
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    Hint: log()
    Don't pay attention to this signature, it's contradictory.

  4. #4
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349
    Let me get a whack at it:

    f(xy) = f(x) + f(y)

    f(2) = 0.3010

    Find f(3). Right?

    f(3) = 0.4771

    So that would mean that

    Code:
         f(xy) = f(x) + f(y)
    
         f(2*3) = f(2) + f(3)
    
         f(6) = f(2) + f(3)
     
         f(6) = 0.3010 + 0.4771
    
         0.7781 =  0.3010 + 0.4771
    Let's double check: Log(6) = 0.7781

    That was too easy!

    Now try working out the math's behind cubic patches (aka Functions from Hell!!!):

    Code:
    X(a,c) = Axa³c³ + Bx3a³c²(1-c) + Cx3a³c(1-c)² + Dxa³(1-c)³ + Ex3a²(1-a)c³ +
                Fx9a²(1-a)c²(1-c) + Gx9a²(1-a)c(1-c)² + Hx3a²(1-a)(1-c)³ + Ix3a(1-a)²c³ + 
                Jx9a(1-a)²c²(1-c) + Kx9a(1-a)²c(1-c)² + Lx3a(1-a)²(1-c)³ +
                Mx(1-a)³c³ + Nx3(1-a)³c²(1-c) + Ox3(1-a)³c(1-c)² + Px(1-a)³(1-c)³       
    
    Y(a,c) = Aya³c³ + By3a³c²(1-c) + Cy3a³c(1-c)² + Dya³(1-c)³ + Ey3a²(1-a)c³ +
                Fy9a²(1-a)c²(1-c) + Gy9a²(1-a)c(1-c)² + Hy3a²(1-a)(1-c)³ + Iy3a(1-a)²c³ + 
                Jy9a(1-a)²c²(1-c) + Ky9a(1-a)²c(1-c)² + Ly3a(1-a)²(1-c)³ +
                My(1-a)³c³ + Ny3(1-a)³c²(1-c) + Oy3(1-a)³c(1-c)² + Py(1-a)³(1-c)³  
    
    Z(a,c) = Aza³c³ + Bz3a³c²(1-c) + Cz3a³c(1-c)² + Dza³(1-c)³ + Ez3a²(1-a)c³ +
                Fz9a²(1-a)c²(1-c) + Gz9a²(1-a)c(1-c)² + Hz3a²(1-a)(1-c)³ + Iz3a(1-a)²c³ + 
                Jz9a(1-a)²c²(1-c) + Kz9a(1-a)²c(1-c)² + Lz3a(1-a)²(1-c)³ +
                Mz(1-a)³c³ + Nz3(1-a)³c²(1-c) + Oz3(1-a)³c(1-c)² + Pz(1-a)³(1-c)³

  5. #5
    New Member
    Join Date
    May 2006
    Posts
    3

    Re: The function from hell.

    Quote Originally Posted by Jacob Roman
    Let me get a whack at it:

    f(xy) = f(x) + f(y)

    f(2) = 0.3010

    Find f(3). Right?

    f(3) = 0.4771

    So that would mean that

    Code:
         f(xy) = f(x) + f(y)
    
         f(2*3) = f(2) + f(3)
    
         f(6) = f(2) + f(3)
     
         f(6) = 0.3010 + 0.4771
    
         0.7781 =  0.3010 + 0.4771
    Let's double check: Log(6) = 0.7781

    That was too easy!

    Now try working out the math's behind cubic patches (aka Functions from Hell!!!):

    Code:
    X(a,c) = Axa³c³ + Bx3a³c²(1-c) + Cx3a³c(1-c)² + Dxa³(1-c)³ + Ex3a²(1-a)c³ +
                Fx9a²(1-a)c²(1-c) + Gx9a²(1-a)c(1-c)² + Hx3a²(1-a)(1-c)³ + Ix3a(1-a)²c³ + 
                Jx9a(1-a)²c²(1-c) + Kx9a(1-a)²c(1-c)² + Lx3a(1-a)²(1-c)³ +
                Mx(1-a)³c³ + Nx3(1-a)³c²(1-c) + Ox3(1-a)³c(1-c)² + Px(1-a)³(1-c)³       
    
    Y(a,c) = Aya³c³ + By3a³c²(1-c) + Cy3a³c(1-c)² + Dya³(1-c)³ + Ey3a²(1-a)c³ +
                Fy9a²(1-a)c²(1-c) + Gy9a²(1-a)c(1-c)² + Hy3a²(1-a)(1-c)³ + Iy3a(1-a)²c³ + 
                Jy9a(1-a)²c²(1-c) + Ky9a(1-a)²c(1-c)² + Ly3a(1-a)²(1-c)³ +
                My(1-a)³c³ + Ny3(1-a)³c²(1-c) + Oy3(1-a)³c(1-c)² + Py(1-a)³(1-c)³  
    
    Z(a,c) = Aza³c³ + Bz3a³c²(1-c) + Cz3a³c(1-c)² + Dza³(1-c)³ + Ez3a²(1-a)c³ +
                Fz9a²(1-a)c²(1-c) + Gz9a²(1-a)c(1-c)² + Hz3a²(1-a)(1-c)³ + Iz3a(1-a)²c³ + 
                Jz9a(1-a)²c²(1-c) + Kz9a(1-a)²c(1-c)² + Lz3a(1-a)²(1-c)³ +
                Mz(1-a)³c³ + Nz3(1-a)³c²(1-c) + Oz3(1-a)³c(1-c)² + Pz(1-a)³(1-c)³
    Wow, just wondering how do you get f(3) = 0.4771 ?

    Thank you!

  6. #6
    Addicted Member Rassis's Avatar
    Join Date
    Jun 2004
    Location
    Lisbon
    Posts
    248

    Re: The function from hell.

    Quote Originally Posted by alkatran
    Hint: log()
    ...said Alkatran.

    log(3) = 0.4771
    ...este projecto dos Deuses que os homens teimam em arruinar...

  7. #7
    New Member
    Join Date
    Sep 2002
    Posts
    3

    Re: The function from hell.

    From the original post, how did you recognize that f(2) = 0.3010 was log(2)?

  8. #8
    Member
    Join Date
    Jun 2006
    Posts
    38

    Re: The function from hell.

    Because if you know the properties of logarithms you know that Log2(xy) is the same as log2(x) + log2(y)

  9. #9
    New Member
    Join Date
    Jun 2006
    Posts
    4

    Re: The function from hell.

    f(xy) = f(x) + f(y) applies to any function. It's not normally used in trigonometric problems and is usually introduced with logarithms also he could have know log2 but if your not sure how to do it just try out f(2) using all the functions on your calculator.

  10. #10
    Addicted Member Rassis's Avatar
    Join Date
    Jun 2004
    Location
    Lisbon
    Posts
    248

    Re: The function from hell.

    This thread is a good example of how giving it a strange title – regardless of the content – increases exponentially the number of viewers. Funny, the way we can be trapped by “words”, isn’t it? And marketeers know it very well, may we like it or not!
    ...este projecto dos Deuses que os homens teimam em arruinar...

Posting Permissions

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



Click Here to Expand Forum to Full Width