symbolic code

Jul 13, 2011 at 11:23am
Cant figure out how to write a code for add or subtracting symbols
for example:
alpha+alpha=2alpha

any help is appreciated.
Jul 13, 2011 at 11:25am
Have you tried writing it the other way around (reverse the order)?
1
2
3
int a = 3;
int b = 4;
int c = a + b; //c is now 7 
Jul 13, 2011 at 11:36am
I just want to get my data in a symbolic way not by an integer.
i am trying to write a code with symbolic calculation and I don't like to define a special integer number as a symbol.

thanks
Jul 13, 2011 at 11:39am
You mean like this?
#define C (a+b)
Jul 13, 2011 at 11:50am
yes, maybe!
is there any tutorial related to this subject?
or in order to search what would be my key word ?
Jul 13, 2011 at 8:38pm
Jul 13, 2011 at 8:45pm
Here's the first thing I got by googling symbolic calculation c++ -> http://www.ginac.de/tutorial/
Jul 16, 2011 at 3:06pm
Thanks a lot.
Topic archived. No new replies allowed.