What does $:=$ mean?
$begingroup$
What does $:=$ mean? For example:
Consider the subset $ mathbb{S} = { p in mathbb {P_4} ( mathbb{R,R} ) | P(2)=0 } $
Suppose $p$, $q$ are in $mathbb{S}$, so $p(2)=q(2)=0$. Then $r := p + q$ is also a polynomial of degree at most $4$ and $r(2) = p(2) + q(2)=0+0=0$
Is it just another notation for the $=$ sign? Or is there any significance on having a : in front of it?
notation
$endgroup$
add a comment |
$begingroup$
What does $:=$ mean? For example:
Consider the subset $ mathbb{S} = { p in mathbb {P_4} ( mathbb{R,R} ) | P(2)=0 } $
Suppose $p$, $q$ are in $mathbb{S}$, so $p(2)=q(2)=0$. Then $r := p + q$ is also a polynomial of degree at most $4$ and $r(2) = p(2) + q(2)=0+0=0$
Is it just another notation for the $=$ sign? Or is there any significance on having a : in front of it?
notation
$endgroup$
add a comment |
$begingroup$
What does $:=$ mean? For example:
Consider the subset $ mathbb{S} = { p in mathbb {P_4} ( mathbb{R,R} ) | P(2)=0 } $
Suppose $p$, $q$ are in $mathbb{S}$, so $p(2)=q(2)=0$. Then $r := p + q$ is also a polynomial of degree at most $4$ and $r(2) = p(2) + q(2)=0+0=0$
Is it just another notation for the $=$ sign? Or is there any significance on having a : in front of it?
notation
$endgroup$
What does $:=$ mean? For example:
Consider the subset $ mathbb{S} = { p in mathbb {P_4} ( mathbb{R,R} ) | P(2)=0 } $
Suppose $p$, $q$ are in $mathbb{S}$, so $p(2)=q(2)=0$. Then $r := p + q$ is also a polynomial of degree at most $4$ and $r(2) = p(2) + q(2)=0+0=0$
Is it just another notation for the $=$ sign? Or is there any significance on having a : in front of it?
notation
notation
edited Sep 5 '15 at 14:22
Silbol
asked Sep 5 '15 at 13:40
SilbolSilbol
3613
3613
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
$begingroup$
It usually means: "we are defining what's on the left of := to be wha't on the right". This distinction originates from computer languages, where the mere equality symbol "=" denotes an assignment of one variable's value to another's. For example, in Mathematica they use "==" for being equal, and "=" for assignment.
$endgroup$
$begingroup$
"to equal", to be more precise.
$endgroup$
– user236182
Sep 5 '15 at 13:42
$begingroup$
@user236182 could you elaborate on what you mean? I don't think I've ever heard that phrasing.
$endgroup$
– Omnomnomnom
Sep 5 '15 at 13:47
$begingroup$
Does this really originate from computer languages? I've always thought this myself, too (which is why I prefer it). It does seem to be used in place of $equiv$ and $triangleq$ in more modern texts, and it coincides with Maple's assignment operator.
$endgroup$
– Chester
Sep 5 '15 at 13:49
1
$begingroup$
@Chester -- wiki suggests that := originated with ALGOL in 1958 and was popularized by Pascal, see en.wikipedia.org/wiki/Assignment_%28computer_science%29
$endgroup$
– Gregory J. Puleo
Sep 5 '15 at 13:55
$begingroup$
...though I guess that leaves open the question whether := had prior mathematical use
$endgroup$
– Gregory J. Puleo
Sep 5 '15 at 13:56
|
show 4 more comments
$begingroup$
The symbol stands for a definition. Sometimes you can also find $doteq$ or $overset{mathrm{def}}{=}$. However these two symbols are completely symmetric, so that you can't tell $a:=b$ from $a=:b$. The difference is that $b$ is known and $a$ is defined in the first case, the other way round in the second.
$endgroup$
add a comment |
$begingroup$
As others have said, the symbol $:=$ means "is defined to be", so $a := b$ means "we define $a$ to be $b$". Other symbols sometimes use include $equiv, stackrel{def}{=}, stackrel{Delta}{=},leftarrow$. In algorithms, this symbol is usually thought of as assigning a value, so that $a := b$ means that we assign the value $b$ to $a$. This is to make clear the destinction between for example
$$x = x + 1$$
and
$$x := x + 1.$$
The first, as a mathematical statement is of course wrong, whereas the second statement simply means that we increase $x$ by one.
Outside of algorithms, the symbol is also used, but here the distinction is more subtle. Here, a statement such as $a := b$ would mean that "$a$ is equal to $b$ because this is how we define it", or simply that we use $a$ as a name for $b$, usually because $b$ is a lengthy expression and we want $a$ to be a more compact symbolism for the same thing. This is in contrast to a statement such as $a = b$, where we say that $a$ and $b$ are equal as a consequence of something else, and not merely because we say so.
Authors who use a symbol like $:=$ to define equalities are very rarely consistent in this use, however, and do not use it every single time they define something, but only when they want to highlight that some relationship holds because it has been defined that way.
$endgroup$
add a comment |
$begingroup$
“$a = b$” means “$a$ is equal to $b$” while “a := b” means “let $a$ be equal to $b$”. The pattern can be extended to some other notation: “$a :Leftrightarrow b$” means “let $a$ be equivalent to $b$”, “$x :∈ X$” means “let $x$ be an element of $X$”, “A :⊆ X” means “let $A$ be a subset of $X$”.
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1423039%2fwhat-does-mean%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
It usually means: "we are defining what's on the left of := to be wha't on the right". This distinction originates from computer languages, where the mere equality symbol "=" denotes an assignment of one variable's value to another's. For example, in Mathematica they use "==" for being equal, and "=" for assignment.
$endgroup$
$begingroup$
"to equal", to be more precise.
$endgroup$
– user236182
Sep 5 '15 at 13:42
$begingroup$
@user236182 could you elaborate on what you mean? I don't think I've ever heard that phrasing.
$endgroup$
– Omnomnomnom
Sep 5 '15 at 13:47
$begingroup$
Does this really originate from computer languages? I've always thought this myself, too (which is why I prefer it). It does seem to be used in place of $equiv$ and $triangleq$ in more modern texts, and it coincides with Maple's assignment operator.
$endgroup$
– Chester
Sep 5 '15 at 13:49
1
$begingroup$
@Chester -- wiki suggests that := originated with ALGOL in 1958 and was popularized by Pascal, see en.wikipedia.org/wiki/Assignment_%28computer_science%29
$endgroup$
– Gregory J. Puleo
Sep 5 '15 at 13:55
$begingroup$
...though I guess that leaves open the question whether := had prior mathematical use
$endgroup$
– Gregory J. Puleo
Sep 5 '15 at 13:56
|
show 4 more comments
$begingroup$
It usually means: "we are defining what's on the left of := to be wha't on the right". This distinction originates from computer languages, where the mere equality symbol "=" denotes an assignment of one variable's value to another's. For example, in Mathematica they use "==" for being equal, and "=" for assignment.
$endgroup$
$begingroup$
"to equal", to be more precise.
$endgroup$
– user236182
Sep 5 '15 at 13:42
$begingroup$
@user236182 could you elaborate on what you mean? I don't think I've ever heard that phrasing.
$endgroup$
– Omnomnomnom
Sep 5 '15 at 13:47
$begingroup$
Does this really originate from computer languages? I've always thought this myself, too (which is why I prefer it). It does seem to be used in place of $equiv$ and $triangleq$ in more modern texts, and it coincides with Maple's assignment operator.
$endgroup$
– Chester
Sep 5 '15 at 13:49
1
$begingroup$
@Chester -- wiki suggests that := originated with ALGOL in 1958 and was popularized by Pascal, see en.wikipedia.org/wiki/Assignment_%28computer_science%29
$endgroup$
– Gregory J. Puleo
Sep 5 '15 at 13:55
$begingroup$
...though I guess that leaves open the question whether := had prior mathematical use
$endgroup$
– Gregory J. Puleo
Sep 5 '15 at 13:56
|
show 4 more comments
$begingroup$
It usually means: "we are defining what's on the left of := to be wha't on the right". This distinction originates from computer languages, where the mere equality symbol "=" denotes an assignment of one variable's value to another's. For example, in Mathematica they use "==" for being equal, and "=" for assignment.
$endgroup$
It usually means: "we are defining what's on the left of := to be wha't on the right". This distinction originates from computer languages, where the mere equality symbol "=" denotes an assignment of one variable's value to another's. For example, in Mathematica they use "==" for being equal, and "=" for assignment.
edited Sep 5 '15 at 13:43
answered Sep 5 '15 at 13:41
uniquesolutionuniquesolution
8,6061823
8,6061823
$begingroup$
"to equal", to be more precise.
$endgroup$
– user236182
Sep 5 '15 at 13:42
$begingroup$
@user236182 could you elaborate on what you mean? I don't think I've ever heard that phrasing.
$endgroup$
– Omnomnomnom
Sep 5 '15 at 13:47
$begingroup$
Does this really originate from computer languages? I've always thought this myself, too (which is why I prefer it). It does seem to be used in place of $equiv$ and $triangleq$ in more modern texts, and it coincides with Maple's assignment operator.
$endgroup$
– Chester
Sep 5 '15 at 13:49
1
$begingroup$
@Chester -- wiki suggests that := originated with ALGOL in 1958 and was popularized by Pascal, see en.wikipedia.org/wiki/Assignment_%28computer_science%29
$endgroup$
– Gregory J. Puleo
Sep 5 '15 at 13:55
$begingroup$
...though I guess that leaves open the question whether := had prior mathematical use
$endgroup$
– Gregory J. Puleo
Sep 5 '15 at 13:56
|
show 4 more comments
$begingroup$
"to equal", to be more precise.
$endgroup$
– user236182
Sep 5 '15 at 13:42
$begingroup$
@user236182 could you elaborate on what you mean? I don't think I've ever heard that phrasing.
$endgroup$
– Omnomnomnom
Sep 5 '15 at 13:47
$begingroup$
Does this really originate from computer languages? I've always thought this myself, too (which is why I prefer it). It does seem to be used in place of $equiv$ and $triangleq$ in more modern texts, and it coincides with Maple's assignment operator.
$endgroup$
– Chester
Sep 5 '15 at 13:49
1
$begingroup$
@Chester -- wiki suggests that := originated with ALGOL in 1958 and was popularized by Pascal, see en.wikipedia.org/wiki/Assignment_%28computer_science%29
$endgroup$
– Gregory J. Puleo
Sep 5 '15 at 13:55
$begingroup$
...though I guess that leaves open the question whether := had prior mathematical use
$endgroup$
– Gregory J. Puleo
Sep 5 '15 at 13:56
$begingroup$
"to equal", to be more precise.
$endgroup$
– user236182
Sep 5 '15 at 13:42
$begingroup$
"to equal", to be more precise.
$endgroup$
– user236182
Sep 5 '15 at 13:42
$begingroup$
@user236182 could you elaborate on what you mean? I don't think I've ever heard that phrasing.
$endgroup$
– Omnomnomnom
Sep 5 '15 at 13:47
$begingroup$
@user236182 could you elaborate on what you mean? I don't think I've ever heard that phrasing.
$endgroup$
– Omnomnomnom
Sep 5 '15 at 13:47
$begingroup$
Does this really originate from computer languages? I've always thought this myself, too (which is why I prefer it). It does seem to be used in place of $equiv$ and $triangleq$ in more modern texts, and it coincides with Maple's assignment operator.
$endgroup$
– Chester
Sep 5 '15 at 13:49
$begingroup$
Does this really originate from computer languages? I've always thought this myself, too (which is why I prefer it). It does seem to be used in place of $equiv$ and $triangleq$ in more modern texts, and it coincides with Maple's assignment operator.
$endgroup$
– Chester
Sep 5 '15 at 13:49
1
1
$begingroup$
@Chester -- wiki suggests that := originated with ALGOL in 1958 and was popularized by Pascal, see en.wikipedia.org/wiki/Assignment_%28computer_science%29
$endgroup$
– Gregory J. Puleo
Sep 5 '15 at 13:55
$begingroup$
@Chester -- wiki suggests that := originated with ALGOL in 1958 and was popularized by Pascal, see en.wikipedia.org/wiki/Assignment_%28computer_science%29
$endgroup$
– Gregory J. Puleo
Sep 5 '15 at 13:55
$begingroup$
...though I guess that leaves open the question whether := had prior mathematical use
$endgroup$
– Gregory J. Puleo
Sep 5 '15 at 13:56
$begingroup$
...though I guess that leaves open the question whether := had prior mathematical use
$endgroup$
– Gregory J. Puleo
Sep 5 '15 at 13:56
|
show 4 more comments
$begingroup$
The symbol stands for a definition. Sometimes you can also find $doteq$ or $overset{mathrm{def}}{=}$. However these two symbols are completely symmetric, so that you can't tell $a:=b$ from $a=:b$. The difference is that $b$ is known and $a$ is defined in the first case, the other way round in the second.
$endgroup$
add a comment |
$begingroup$
The symbol stands for a definition. Sometimes you can also find $doteq$ or $overset{mathrm{def}}{=}$. However these two symbols are completely symmetric, so that you can't tell $a:=b$ from $a=:b$. The difference is that $b$ is known and $a$ is defined in the first case, the other way round in the second.
$endgroup$
add a comment |
$begingroup$
The symbol stands for a definition. Sometimes you can also find $doteq$ or $overset{mathrm{def}}{=}$. However these two symbols are completely symmetric, so that you can't tell $a:=b$ from $a=:b$. The difference is that $b$ is known and $a$ is defined in the first case, the other way round in the second.
$endgroup$
The symbol stands for a definition. Sometimes you can also find $doteq$ or $overset{mathrm{def}}{=}$. However these two symbols are completely symmetric, so that you can't tell $a:=b$ from $a=:b$. The difference is that $b$ is known and $a$ is defined in the first case, the other way round in the second.
answered Sep 5 '15 at 13:51
SiminoreSiminore
30.4k33368
30.4k33368
add a comment |
add a comment |
$begingroup$
As others have said, the symbol $:=$ means "is defined to be", so $a := b$ means "we define $a$ to be $b$". Other symbols sometimes use include $equiv, stackrel{def}{=}, stackrel{Delta}{=},leftarrow$. In algorithms, this symbol is usually thought of as assigning a value, so that $a := b$ means that we assign the value $b$ to $a$. This is to make clear the destinction between for example
$$x = x + 1$$
and
$$x := x + 1.$$
The first, as a mathematical statement is of course wrong, whereas the second statement simply means that we increase $x$ by one.
Outside of algorithms, the symbol is also used, but here the distinction is more subtle. Here, a statement such as $a := b$ would mean that "$a$ is equal to $b$ because this is how we define it", or simply that we use $a$ as a name for $b$, usually because $b$ is a lengthy expression and we want $a$ to be a more compact symbolism for the same thing. This is in contrast to a statement such as $a = b$, where we say that $a$ and $b$ are equal as a consequence of something else, and not merely because we say so.
Authors who use a symbol like $:=$ to define equalities are very rarely consistent in this use, however, and do not use it every single time they define something, but only when they want to highlight that some relationship holds because it has been defined that way.
$endgroup$
add a comment |
$begingroup$
As others have said, the symbol $:=$ means "is defined to be", so $a := b$ means "we define $a$ to be $b$". Other symbols sometimes use include $equiv, stackrel{def}{=}, stackrel{Delta}{=},leftarrow$. In algorithms, this symbol is usually thought of as assigning a value, so that $a := b$ means that we assign the value $b$ to $a$. This is to make clear the destinction between for example
$$x = x + 1$$
and
$$x := x + 1.$$
The first, as a mathematical statement is of course wrong, whereas the second statement simply means that we increase $x$ by one.
Outside of algorithms, the symbol is also used, but here the distinction is more subtle. Here, a statement such as $a := b$ would mean that "$a$ is equal to $b$ because this is how we define it", or simply that we use $a$ as a name for $b$, usually because $b$ is a lengthy expression and we want $a$ to be a more compact symbolism for the same thing. This is in contrast to a statement such as $a = b$, where we say that $a$ and $b$ are equal as a consequence of something else, and not merely because we say so.
Authors who use a symbol like $:=$ to define equalities are very rarely consistent in this use, however, and do not use it every single time they define something, but only when they want to highlight that some relationship holds because it has been defined that way.
$endgroup$
add a comment |
$begingroup$
As others have said, the symbol $:=$ means "is defined to be", so $a := b$ means "we define $a$ to be $b$". Other symbols sometimes use include $equiv, stackrel{def}{=}, stackrel{Delta}{=},leftarrow$. In algorithms, this symbol is usually thought of as assigning a value, so that $a := b$ means that we assign the value $b$ to $a$. This is to make clear the destinction between for example
$$x = x + 1$$
and
$$x := x + 1.$$
The first, as a mathematical statement is of course wrong, whereas the second statement simply means that we increase $x$ by one.
Outside of algorithms, the symbol is also used, but here the distinction is more subtle. Here, a statement such as $a := b$ would mean that "$a$ is equal to $b$ because this is how we define it", or simply that we use $a$ as a name for $b$, usually because $b$ is a lengthy expression and we want $a$ to be a more compact symbolism for the same thing. This is in contrast to a statement such as $a = b$, where we say that $a$ and $b$ are equal as a consequence of something else, and not merely because we say so.
Authors who use a symbol like $:=$ to define equalities are very rarely consistent in this use, however, and do not use it every single time they define something, but only when they want to highlight that some relationship holds because it has been defined that way.
$endgroup$
As others have said, the symbol $:=$ means "is defined to be", so $a := b$ means "we define $a$ to be $b$". Other symbols sometimes use include $equiv, stackrel{def}{=}, stackrel{Delta}{=},leftarrow$. In algorithms, this symbol is usually thought of as assigning a value, so that $a := b$ means that we assign the value $b$ to $a$. This is to make clear the destinction between for example
$$x = x + 1$$
and
$$x := x + 1.$$
The first, as a mathematical statement is of course wrong, whereas the second statement simply means that we increase $x$ by one.
Outside of algorithms, the symbol is also used, but here the distinction is more subtle. Here, a statement such as $a := b$ would mean that "$a$ is equal to $b$ because this is how we define it", or simply that we use $a$ as a name for $b$, usually because $b$ is a lengthy expression and we want $a$ to be a more compact symbolism for the same thing. This is in contrast to a statement such as $a = b$, where we say that $a$ and $b$ are equal as a consequence of something else, and not merely because we say so.
Authors who use a symbol like $:=$ to define equalities are very rarely consistent in this use, however, and do not use it every single time they define something, but only when they want to highlight that some relationship holds because it has been defined that way.
edited Sep 24 '15 at 15:39
answered Sep 5 '15 at 16:01
mrpmrp
3,79051537
3,79051537
add a comment |
add a comment |
$begingroup$
“$a = b$” means “$a$ is equal to $b$” while “a := b” means “let $a$ be equal to $b$”. The pattern can be extended to some other notation: “$a :Leftrightarrow b$” means “let $a$ be equivalent to $b$”, “$x :∈ X$” means “let $x$ be an element of $X$”, “A :⊆ X” means “let $A$ be a subset of $X$”.
$endgroup$
add a comment |
$begingroup$
“$a = b$” means “$a$ is equal to $b$” while “a := b” means “let $a$ be equal to $b$”. The pattern can be extended to some other notation: “$a :Leftrightarrow b$” means “let $a$ be equivalent to $b$”, “$x :∈ X$” means “let $x$ be an element of $X$”, “A :⊆ X” means “let $A$ be a subset of $X$”.
$endgroup$
add a comment |
$begingroup$
“$a = b$” means “$a$ is equal to $b$” while “a := b” means “let $a$ be equal to $b$”. The pattern can be extended to some other notation: “$a :Leftrightarrow b$” means “let $a$ be equivalent to $b$”, “$x :∈ X$” means “let $x$ be an element of $X$”, “A :⊆ X” means “let $A$ be a subset of $X$”.
$endgroup$
“$a = b$” means “$a$ is equal to $b$” while “a := b” means “let $a$ be equal to $b$”. The pattern can be extended to some other notation: “$a :Leftrightarrow b$” means “let $a$ be equivalent to $b$”, “$x :∈ X$” means “let $x$ be an element of $X$”, “A :⊆ X” means “let $A$ be a subset of $X$”.
answered Sep 5 '15 at 16:23
user87690user87690
6,5511825
6,5511825
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1423039%2fwhat-does-mean%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown