Chris Chiasson wrote:
Hello, I'm a newbie here so I apologize for any lameness in advance.
I was reading
http://www.library.cornell.edu/nr/bookcpdf/c10-2.pdf
while trying to implement Brent's method in another language
(Mathematica).
However, I have no idea what the SHFT function does.
Will someone point me to a good online function reference for C,
preferably one that documents this SHFT function?
Thank you for your time,
Good reference: The C Programming Language, by Kernighan and Ritchie.
Actually, make that great reference.
SHFT is not standard. It's defined as a macro in the program you
reference by the line:
#define SHFT(a,b,c,d) (a)=(b);(b)=(c);(c)=(d);
So in other words, SHFT(a, b, c, d) does:
a = b;
b = c;
c = d;
The extra parentheses (in the #define) are needed for macros. You can
read all about it elsewhere.
Hope this helps.
Michael