Performing math operations on algebraic variables in .net (vb or c#)
Posted on 2013-06-27
Is there anyway (and if so how?) of performing math operations on algebraic variables in .net?
Dim a as integer
Dim x as integer
x = a + a
Would result in x= 0 because no value was ever given to a. What I am looking for is a way for x to equal 2a (x = 2a). If anyone has any sample code or advice. It would be greatly welcomed.
I mostly work in VB.net but could covert C#. Even C++ might help.