# "code" or "encode" [math]

#### MNB62

##### Member
What is the difference between "code" and "encode" when they are applied as a verb?

• #### Beryl from Northallerton

##### Senior Member
Please provide us with a sample sentence.

#### MNB62

##### Member
Each factor is measured at two levels, which can be coded as −1 when the factor is at its low level (L) and +1 when the factor is at its high level (H). The coded variable can be defined as follows (suppose that there is a mathematical equation here) where x and r are coded as variable and real variable, respectively. h and l represent high level and low level of factor. Factors and their levels are shown in tables 1 ... . Why can't we use "encode" instead of "code"?

#### Beryl from Northallerton

##### Senior Member
>> Why can't we use "encode" instead of "code"?

I suspect that this just happens to be the way the jargon has evolved, MNB. A few people started using the verb 'code' in this precisely defined way, and others in the field followed suit.
I recommend you do the same.
Whilst it's true that 'code' and 'encode' have an appreciable overlap of meaning in natural language, you must realise that the example you have given is not taken from natural language.

##### Senior Member
I agree, a source link is required. I suspect coded = flagged but without a link I really can't help.

#### MNB62

##### Member
Thanks a lot, Beryl. The source is available on the "http://dx.doi.org/10.1016/j.apm.2013.05.063"

#### Andygc

##### Senior Member
MNB62

Andygc, moderator

#### MNB62

##### Member
The source is a paper: "Mehrdad Mohammadi, Fariborz Jolai, Reza Tavakkoli-Moghaddam, Solving a new stochastic multi-mode p-hub covering location problem considering risk by a novel multi-objective algorithm, International Journal of mathematical modelling, DOI: http://dx.doi.org/10.1016/j.apm.2013.05.063."

#### MNB62

##### Member
Thanks a lot, sdgraham! The links you suggested are really useful

< Previous | Next >