Material Funcion problem

hi can any1 pls tell me y don i get the same result when i connect the nodes in Function as i get as i get at Material? Pic 01 is material and 02 is Function.

Show graphs