In need of special function

Discussion in 'Algebra' started by Blank, Aug 17, 2021.

  1. Blank

    Blank

    Joined:
    Aug 17, 2021
    Messages:
    2
    Likes Received:
    1
    Hi guys!
    first thread in this forum so I apologize if I make any formal errors here :)

    So, my question is whether there is a simpler function to one particular problem:

    The function only needs to deal with these four cases and output exactly these outputs:

    f( 1, 1) = 1
    f( 1, -1) = 1
    f(-1, 1) = 1
    f(-1, -1) = -1

    Only approach I came up with was the function f(a,b) = ((a-1)*(b-1)-2)/-2

    But I am in need of a much simpler function. Please help!
     
    Last edited: Aug 17, 2021
    Blank, Aug 17, 2021
    #1
  2. Blank

    MathLover1

    Joined:
    Jun 27, 2021
    Messages:
    2,989
    Likes Received:
    2,884
    I would try this function:

    f(a,b) =(a)^3*b^2

    f(1,1) =1^3*1^2=1
    f(1,-1) =1^3*(-1)^2=1
    f(-1,1) =(-1)^3*1^2=-1
    f(-1,-1) =(-1)^3*(-1)^2=-1
     
    MathLover1, Aug 17, 2021
    #2
    nycmathguy likes this.
  3. Blank

    Blank

    Joined:
    Aug 17, 2021
    Messages:
    2
    Likes Received:
    1
    Wow! I didnt expect an answer that fast, it was only like 1.5hrs.
    And first of all, thank you for your suggestion, but sadly, if you only look at the specific cases, f(a,b)=a³*b² =a (we only deal with 1s), and that is for the case of f(-1,1)=1 wrong. But thank you again, anyways!
     
    Blank, Aug 18, 2021
    #3
    MathLover1 likes this.
  4. Blank

    nycmathguy

    Joined:
    Jun 27, 2021
    Messages:
    5,386
    Likes Received:
    422
    At least she tried. Anyone can make an error.
     
    nycmathguy, Aug 18, 2021
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
There are no similar threads yet.
Loading...