What's the difference between
and
Enter two words to compare and contrast their definitions, origins, and synonyms to better understand how those words are related.

Command vs Function - What's the difference?

command | function |

In computing terms the difference between command and function

is that command is a directive to a computer program acting as an interpreter of some kind, in order to perform a specific task while function is a routine that receives zero or more arguments and may return a result.

As nouns the difference between command and function

is that command is an order to do something while function is what something does or is used for.

As verbs the difference between command and function

is that command is to order, give orders; to compel or direct with authority while function is to have a function.

command

English

Noun

(en noun)
  • An order to do something.
  • I was given a command to cease shooting.
  • The right or authority to order, control or dispose of; the right to be obeyed or to compel obedience.
  • to have command of an army
  • power of control, direction or disposal; mastery.
  • he had command of the situation
    England has long held command of the sea
    a good command of language
  • A position of chief authority; a position involving the right or power to order or control.
  • General Smith was placed in command .
  • The act of commanding; exercise or authority of influence.
  • Command cannot be otherwise than savage, for it implies an appeal to force, should force be needful.'' (''H. Spencer , Social Statics, p. 180)
  • (military) A body or troops, or any naval or military force, under the control of a particular officer; by extension, any object or body in someone's charge.
  • * 1899 ,
  • I asked myself what I was to do there, now my boat was lost. As a matter of fact, I had plenty to do in fishing my command out of the river.
  • Dominating situation; range or control or oversight; extent of view or outlook.
  • (computing) A directive to a computer program acting as an interpreter of some kind, in order to perform a specific task.
  • (baseball) The degree of control a pitcher has over his pitches.
  • He's got good command tonight.

    Verb

    (en verb)
  • To order, give orders; to compel or direct with authority.
  • The soldier was commanded to cease firing.
    The king commanded his servant to bring him dinner.
  • * Francis Bacon
  • We are commanded' to forgive our enemies, but you never read that we are ' commanded to forgive our friends.
  • * Shakespeare
  • Go to your mistress: / Say, I command her come to me.
  • To have or exercise supreme power, control or authority over, especially military; to have under direction or control.
  • to command an army or a ship
  • * Macaulay
  • Monmouth commanded the English auxiliaries.
  • * Shakespeare
  • Such aid as I can spare you shall command .
  • To require with authority; to demand, order, enjoin.
  • he commanded silence
    If thou be the son of God, command that these stones be made bread. (Mat. IV. 3.)
  • * 2013 , Louise Taylor, English talent gets left behind as Premier League keeps importing'' (in ''The Guardian , 20 August 2013)[http://www.theguardian.com/football/blog/2013/aug/19/english-talent-premier-league-importing]
  • The reasons for this growing disconnect are myriad and complex but the situation is exacerbated by the reality that those English players who do smash through our game's "glass ceiling" command radically inflated transfer fees.
  • to dominate through ability, resources, position etc.; to overlook.
  • Bridges commanded by a fortified house. (Motley.)
  • To exact, compel or secure by influence; to deserve, claim.
  • A good magistrate commands the respect and affections of the people.
    Justice commands the respect and affections of the people.
    The best goods command the best price.
    This job commands a salary of £30,000.
  • To hold, to control the use of.
  • The fort commanded the bay.
  • * Motley
  • bridges commanded by a fortified house
  • * Shakespeare
  • Up to the eastern tower, / Whose height commands as subject all the vale.
  • * Addison
  • One side commands a view of the finest garden.
  • (archaic) To have a view, as from a superior position.
  • * Milton
  • Far and wide his eye commands .
  • (obsolete) To direct to come; to bestow.
  • * Bible, Leviticus xxv. 21
  • I will command my blessing upon you.

    Synonyms

    * (give an order) decree, order

    Derived terms

    * chain of command * commandable * command economy * commandeer * commander * commandery * command guidance * commanding * command key * command language * command line * commandment * command module * command performance * command post * high command * second in command * self-command * trains command * your wish is my command

    References

    * *

    Statistics

    * English control verbs

    function

    English

    Noun

    (en noun)
  • What something does or is used for.
  • * {{quote-magazine, year=2013, month=May-June, author= Katrina G. Claw
  • , title= Rapid Evolution in Eggs and Sperm , volume=101, issue=3, magazine=(American Scientist) , passage=Many genes with reproductive roles also have antibacterial and immune functions , which indicate that the threat of microbial attack on the sperm or egg may be a major influence on rapid evolution during reproduction.}}
  • A professional or official position.
  • (senseid)An official or social occasion.
  • A relation where one thing is dependent on another for its existence, value, or significance.
  • (mathematics) A relation in which each element of the domain is associated with exactly one element of the codomain.
  • (computing) A routine that receives zero or more arguments and may return a result.
  • (biology) The physiological activity of an organ or body part.
  • (chemistry) The characteristic behavior of a chemical compound.
  • (anthropology) The role of a social practice in the continued existence of the group.
  • Synonyms

    * (what something does or is used for) aim, intention, purpose, role, use * (professional or official position) occupation, office, part, role * (official or social occasion) affair, occasion, social occasion, social function * many-to-one map, many-to-one mapping, mathematical function, operation, transformation * procedure, routine, subprogram, subroutine

    Hypernyms

    * (mathematics) relation

    Derived terms

    * absolutely continuous function * acidity function * adaptive-control function * additive function * additive set function * adjoint wave function * aggregate function * Airy function * Airy stress function * algebraic function * almost-periodic function * alternating function * analytic function * analytical function generator * anatomy of function * antihyperbolic function * antisymmetric wave function * antisymmetrized wave function * antitrigonometric function * arc-hyperbolic function * autocorrelation function * Baire function * bei function * ber function * Bessel function * beta function * bifunctional * biharmonic function * Bloch function * Boolean function * Borel measurable function * bounded function * boxcar function * Brillouin function * built-in function * Cantor function * characteristic function * circular function * cofunction * comparable function * complementary function * complete class of decision function * composite function * compressadensity function * computable function * concave function * confluent hypergeometric function * conjugate convex function * connect function * constant function * constraint function * contiguous function * continuous function * convex function * cosine function * cost function * countably additive set function * countably subadditive set function * critical function * cross-correlation function * cyclosymmetric function * cylinder function * decreasing function * delta function * density function * describing function * differentiable function * difunctional * digamma function * diode function generator * Dirac wave function * discriminant function * disfunction * dissipation function * driving-point function * dysfunction * effectively computable function * eigenfunction * eigenfunction expansion * Einstein partition function * electron wave function * electronic work function * elementary function * elementary symmetric function * elliptic function * Emden function * entire function * equivalent propositional function * error function * essentially bounded function * Euler's phi function * even function * excitation function * executive ego function * explicit function * exponential density function * exponential function * exponential generating function * feedback transfer function * Fermi-Dirac distribution function * form function * forward transfer function * Fowler function * frontogenetic function * function code * function failure safety * function generator * function key * function multiplier * function object * function space * function switch * function table * function unit * function-evaluation routine * functional * functionalism * functionality * gamma function * general-purpose function generator * generalized transmission function * generating function * Green's function * Hamiltonian function * Hammett acidity function * Hankel function * harmonic function * Heaviside unit function * hei function * her function * Hildebrand function * homogeneous function * Hugoniot function * hybrid wave function * hyperbolic function * hypergeometric function * identity function * implicit function * implicit function theorem * impulse function * incidence function * incomplete beta function * incomplete gamma function * increasing function * independent function * influence function * information function of a partition * initial mass function * inner function * integrable function * integral function * invariant function * inverse function * inverse function theorem * inverse hyperbolic function * inverse trigonometric function * inverting function * J function * Jacobian elliptic function * jump function * kei function * ker function * Koebe function * Lagrange stream function * Lagrangian function * * * Langevin function * left-continuous function * Legendre function * Leverett function * line function * linear discriminant function * linear function * Liouville function * locally integrable function * logarithmic trigonometric function * logarithmically convex function * loop transfer function * loss function * lower semicontinuous function * luminosity function * Lyapunov function * malfunction * malfunction routine * Massieu function * mathematical function program * Mathieu function * Maxwell's stress function * measurable function * membership function * meromorphic function * microspec function * minimal brain dysfunction syndrome * Minkowski distance function * * modified Bessel function * modified Hankel function * moment generating function * momentum wave function * monofunctional compound * monogenic analytic function * monotone function * monotone nondecreasing function * monotone nonincreasing function * monotonic increasing function * Morera's stress function * multifunction array radar * multilinear function * multiplicative number-theoretic function * natural function * Neumann function * nonfunctional packages software * normal density function * normalized function * normalized support function * NOT function * nuclear response function * number-theoretic function * objective function * odd function * optimizing control function * orthogonal function * orthonormal function * parabolic cylinder function * partial function * partial recursive function * particle distribution function * partition function * Patterson function * penalty function * periodic function * phase function * piecewise-continuous function * Planck function * point characteristic function * point function * Poisson density function * polynomial function * positive linear functional * positive real function * power function * predefined function * principal function * probability density function * probability mass function * programmed function key * proper rational function * propositional function * psi function * pulsed transfer function * quadratic function * Rademacher function * radial distribution function * radicofunctional name * random function * rational function * Rayleigh's dissipation function * real-valued function * recursive function * regular function * regulatory control function * restricted function * Riccati-Bessel function * Riemann function * Riemann P function * Riemann zeta function * sample function * scalar function * scattering function * * self-dual switching function * self-organizing function * sensitivity function * separated-function synchrotron * set function * sharpness function technique * shear-viscosity function * sigma function * simple function * simply periodic function * single-valued function * sinusoidal function * skewed density function * Smarandache function * source function * special function * spectral function * spherical Bessel function * staff function * step function * step-function generator * Stokes stream function * stress function * subadditive function * subadditive set function * subfunction * subfunctional * subharmonic function * subsine function * summable function * superadditive function * superharmonic function * support function * switch function * switching function * symmetric function * tapped-potentiometer function generator * test function * tetrafunctional molecule * thermionic work function * thermodynamic function of state * theta function * tool-function controller * torsion function * transcendental function * transfer function * transition function * transmission function * trigamma function * trigonometric cofunction * trigonometric function * truth function * Turing computable function * universal transmission function * universal wavelength function * upper semicontinuous function * user-defined function * variable diode function generator * vector function * viscous dissipation function * wave function * Wannier function * Weierstrass function * Weierstrassian elliptic function * weight function * work function

    Verb

    (en verb)
  • to have a function
  • to carry on a function; to be in action
  • Synonyms

    * (to have a function) officiate, serve * (to carry on a function) go, operate, run, work

    Antonyms

    * (to carry on a function) malfunction