Link to home
Start Free TrialLog in
Avatar of mustish1
mustish1

asked on

Needs help in function

Can any one please explain that ? Thanks

Define function f, g: N -----> N by
    f(x) = 2x
    g(x) = [x/2]

Is f o g the same as g o f? Explain

Answer: No. For example, (f o g)(5) = 4, but (g o f)(5) = 5.
Avatar of ozo
ozo
Flag of United States of America image

do you understand why (f o g)(5) = 4 ?
do you understand why (g o f)(5) = 5 ?
Avatar of mustish1
mustish1

ASKER

No.
What does the g o f and f o g notation mean?
do you know what g(5) is?
No
do you know what [5/2] is?
5-2
no, 5/2 = 2.5
[2.5] = 2
ASKER CERTIFIED SOLUTION
Avatar of GwynforWeb
GwynforWeb
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
... there is an assumption here that [x] refers to the integer part of x

eg [2.5] = 2