My Pensieve RSS

If you are wondering what pensieve means watch Goblet of fire

Archive

May
2nd
Sat
permalink

Functions and Procedures

Just my understanding of the concepts

f(x) = 4(2x + 3)

g(x) = 8x + 12

So f and g are same functions or procedures?

Function is an abstract concept mapping input and output. Input goes into the box and output comes. If for the same input pushed into two different boxes produce give same output they do the same function.

Whereas the procedure is an algorithm. They are implementation concepts and it defines the way we process the input to output. So f and g even though they give same output for same input do it differently and they are different procedures.

And here is Naresh Jain’s more programming world oriented definition of the same concept which I agree to http://tinyurl.com/cf6so2

That’s all for today people :)

Comments (View)
blog comments powered by Disqus