Results 1 to 3 of 3

Math Help - I am going crazy, please help!

  1. #1
    Newbie
    Joined
    Jan 2006
    Posts
    2

    I am going crazy, please help!

    I have the following:

    a-b=X

    I need one single formula (that uses only addition, substraction, multiplication or division) where if X is a positive number the result will be 1 and if X is a negative number the result will be -1 or 0

    Is this possible?

    Thanx in advance!
    nik
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Newbie
    Joined
    Aug 2005
    Posts
    2

    Re: I am going crazy, please help!

    Maybe something like that:

    F=(a-b)/sqrt((a-b)^2)

    This will be 1 if X>0, 0 if X=0, and -1 if X=-1

    But I don't know how can it be done without roots and powers.
    Is it possible to use absolute value?
    Last edited by Alex232; January 21st 2006 at 07:24 PM.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Jan 2006
    Posts
    2
    I will give it a shot Thanks
    nik
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Crazy puzzle
    Posted in the Trigonometry Forum
    Replies: 2
    Last Post: September 30th 2010, 01:44 PM
  2. This looks like a crazy integral...please help
    Posted in the Calculus Forum
    Replies: 8
    Last Post: March 19th 2010, 08:04 PM
  3. Crazy integral
    Posted in the Math Challenge Problems Forum
    Replies: 4
    Last Post: July 10th 2009, 02:51 AM
  4. Crazy problem
    Posted in the Calculus Forum
    Replies: 3
    Last Post: June 12th 2009, 02:26 PM
  5. a crazy Integral...
    Posted in the Calculus Forum
    Replies: 5
    Last Post: August 12th 2007, 03:42 AM

Search Tags


/mathhelpforum @mathhelpforum