The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
70 views

Given that $f(y)=\frac{ \mid y \mid }{y},$ and $q$ is non-zero real number, the value of $\mid f(q)-f(-q) \mid $ is

  1.  $0$
  2.  $-1$ 
  3.  $1$       
  4. $2$
in Numerical Ability by Boss (45.8k points)
edited by | 70 views
0
It will be 2.

1 Answer

+2 votes
Best answer

$f(y) = \frac{|y|}{y}= \left\{\begin{matrix} +1 & when \; y>0\\ -1 & when \; y<0 \end{matrix}\right.$

It is well-known signum function but in the given quetion, it is not defined for $y=0$

Here, $q$ is a non-zero real number.

So,

$(1)$ When $q>0$, then $|f(q)-f(-q)| = |(+1) - (-1)| = 2$ because when $q>0$ then $f(q)=f(>0)=+1$ and $q>0$ means $-q<0$ which implies  $f(-q)=f(<0)=-1$

$(2)$ When $q<0$, then $|f(q)-f(-q)| = |(-1) - (+1)| = 2$ because when $q<0$ then $f(q)=f(<0)=-1$ and $q<0$ means $-q>0$ which implies  $f(-q)=f(>0)=+1$

Correct Option: D.

by Boss (14k points)
selected by
Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,823 questions
54,821 answers
189,571 comments
81,052 users