I am trying build a polynomial calculator that at the end lists prints out the answer in the format:
x^2 : 2
x^1 : 3
x^0 : 12
(Which would be the same as 2x^2 + 3x +12).
However I find that whatever I use to print the result, it always comes out like...
"x^2 : "2
"x^1 : "3
"x^0 : "12
What can I use to print the string, without the quotation marks?
Which brings me to the question, what is the difference between princ, print and prin1? And when should I use each of them?
I've tried all three and none of them seem to solve my problem.
Any help/advice would be much appreciated!