Which of the following are correct with respect to |x|? |x| = -x if x < 0 or x=0 |x| = x if x > 0 or x =0 |x| = -x if x <0 I know 2 is correct, but are the other two also correct? I need explaination, absolute values can't be negative
@Mimi_x3 is three correct? aan you explian it a bit more?
mod x means absolute value of x it is always positive.
if |dw:1456228520806:dw|
is it clear
only third one is correct
all of them are correct but you need to consider x=0 case, how would your text book deal with it. and remind this... you are allowed 1 statement that tell you what to do with x=0 as if u code this u would had a glitch.
Hey, @ikram002p can I know why they are all correct?
Here is the question btw, i am studying for a test.
f(x)=|x| means this function need to be positive all the time, so when x>0 means its positive so f(x)=x no harm, and when x<0 means x is negative so we multiply it with negative to get a positive sign at the end, f(x)=-z as x<0... now for 0 all cases works as f(x)=0...
okay thanks
Join our real-time social learning platform and learn together with your friends!