New answers tagged

-2

Function in computer science in simple words represents by braces( ) like in c++ we use predefine functions like main() etc but sometimes in ( java) we call this function as method also we have many predefined functions in java like substring(),indexOf() and many more but also you will remeber one think these languages also provides controls to declares ...


2

As others have noted, the answer is "yes", but it's often a qualified "yes". Sometimes we talk about sets and functions, but sometimes we talk about computable sets and computable functions. There is a temptation to think of programming language types as sets of values (e.g. $\hbox{Bool}$ is the set of values $\left\{ \hbox{False}, \hbox{...


3

A function in mathematics is just a special case for a binary relation, where for every x there is exactly one y such that xRy is in the binary relation. Computer science uses that term with the same meaning, as it uses lots of mathematical terms. It also uses the term "function" (or "subroutine", "procedure", "method")...


1

I would be a lot more confident if you were asking about a specific usage, rather than in generaly--would you like to give an example? That said no, they are the same. Further, theoretical computer science is arguably a field of mathematics, and certainly inherits a lot of culture and terminology from it. You can expect most terms to be the same. However, do ...


Top 50 recent answers are included