Duty vs. Function

Difference Between Duty and Function
Dutynoun
That which one is morally or legally obligated to do.
We don't have a duty to keep you here.Functionnoun
What something does or is used for.
Dutynoun
A period of time spent at work or doing a particular task.
I’m on duty from 6 pm to 6 am.Functionnoun
A professional or official position.
Dutynoun
Describing a workload as to its idle, working and de-energized periods.
Functionnoun
An official or social occasion.
Dutynoun
A tax placed on imports or exports; a tariff.
customs duty; excise dutyFunctionnoun
A relation where one thing is dependent on another for its existence, value, or significance.
Dutynoun
(obsolete) One's due, something one is owed; a debt or fee.
Functionnoun
(mathematics) A relation in which each element of the domain is associated with exactly one element of the codomain.
Dutynoun
(obsolete) Respect; reverence; regard; act of respect; homage.
Functionnoun
(computing) A routine that receives zero or more arguments and may return a result.
Dutynoun
The efficiency of an engine, especially a steam pumping engine, as measured by work done by a certain quantity of fuel; usually, the number of pounds of water lifted one foot by one bushel of coal (94 lbs. old standard), or by 1 cwt. (112 lbs., England, or 100 lbs., United States).
Functionnoun
(biology) The physiological activity of an organ or body part.
Dutynoun
work that you are obliged to perform for moral or legal reasons;
the duties of the jobFunctionnoun
(chemistry) The characteristic behavior of a chemical compound.
Dutynoun
the social force that binds you to your obligations and the courses of action demanded by that force;
we must instill a sense of duty in our childrenevery right implies a responsibility; every opportunity, an obligation; every possession, a dutyFunctionnoun
(anthropology) The role of a social practice in the continued existence of the group.
Dutynoun
a government tax on imports or exports;
they signed a treaty to lower duties on trade between their countriesFunctionverb
(intransitive) To have a function.
Functionverb
(intransitive) To carry out a function; to be in action.
Functionnoun
a mathematical relation such that each element of one set is associated with at least one element of another set
Functionnoun
what something is used for;
the function of an auger is to bore holesballet is beautiful but what use is it?Functionnoun
the actions and activities assigned to or required or expected of a person or group;
the function of a teacherthe government must do its partplay its roleFunctionnoun
a relation such that one thing is dependent on another;
height is a function of ageprice is a function of supply and demandFunctionnoun
a formal or official social gathering or ceremony;
it was a black-tie functionFunctionnoun
a vaguely specified social event;
the party was quite an affairan occasion arranged to honor the presidenta seemingly endless round of social functionsFunctionnoun
a set sequence of steps, part of larger computer program
Functionverb
perform as expected when applied;
The washing machine won't go unless it's plugged inDoes this old car still run well?This old radio doesn't work anymoreFunctionverb
serve a purpose, role, or function;
The tree stump serves as a tableThe female students served as a control groupThis table would serve very wellHis freedom served him wellThe table functions as a deskFunctionverb
perform duties attached to a particular office or place or function;
His wife officiated as his private secretary