473,383 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

function reference

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,

Oct 3 '06 #1
2 1969
Chris Chiasson schrieb:
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?
There is not SHFT function in C. It is a macro defined on page 404 of the pdf.

--
Thomas
http://www.netmeister.org/news/learn2quote.html
Oct 3 '06 #2

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

Oct 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) {...
58
by: jr | last post by:
Sorry for this very dumb question, but I've clearly got a long way to go! Can someone please help me pass an array into a function. Here's a starting point. void TheMainFunc() { // Body of...
10
by: Michael | last post by:
Guys, I'm interested in how the compiler implements function calls, can anyone correct my understanding/point me towards some good articles. When a function is called, is the stack pointer...
14
by: lutorm | last post by:
Hi, I'm having a problem with a return statement being parsed to return a function (I think). Check here: template <typename T> class A {}; template <typename T> class maker_of_A { public:...
39
by: Randell D. | last post by:
Folks, I'm sure this can be done legally, and not thru tricks of the trade - I hope someone can help. I'm writing a 'tool' (a function) which can be used generically in any of my projects. ...
2
by: laredotornado | last post by:
Hello, I am looking for a cross-browser way (Firefox 1+, IE 5.5+) to have my Javascript function execute from the BODY's "onload" method, but if there is already an onload method defined, I would...
14
by: Mike Labosh | last post by:
How do you define whether the return value of a function is ByRef or ByVal? I have a utility class that cleans imported records by doing *really heavy* string manipulation in lots of different...
5
by: sfeher | last post by:
Hi All, I need to call a function(loaded with appendChild) for which I have the name as a string. .... var fnName = 'fn1'; var call = fnName + '('+ param +' )'; eval(call);
28
by: Larax | last post by:
Best explanation of my question will be an example, look below at this simple function: function SetEventHandler(element) { // some operations on element element.onclick = function(event) {
12
by: Bryan Parkoff | last post by:
I write my large project in C++ source code. My C++ source code contains approximate four thousand small functions. Most of them are inline. I define variables and functions in the global scope....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.