# Assignment problem

• Jul 28th 2012, 08:16 AM
mariusg
Assignment problem
If I write a mathematical algorithm. ( something that might become part of a computer program) and I need to assign a value to a variable. I normally just write something like this "set x to something" or "set x=something"

But in math you have notations for everything. Is there a notation or this?
• Jul 28th 2012, 08:24 AM
Plato
Re: Assignment problem
Quote:

Originally Posted by mariusg
If I write a mathematical algorithm. ( something that might become part of a computer program) and I need to assign a value to a variable. I normally just write something like this "set x to something" or "set x=something"
But in math you have notations for everything. Is there a notation or this?

As far as I know there is no universal agreement on tbis.
However, some computer algebra systems use $a:= x$ to mean $a$ is assigned the value $x$.