ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm looking for something specific: a good book on numerical analysis in C, using GNU/Linux. Any recommendations?
I'd like something fairly mathematical and technical; I got Ivor Horton's "Beginning C" book and it was obviously not written with people like me in mind.
It doesn't matter how old it is, and if it covers C on Unix, that's good enough.
Neither am I. Now that I think about it some more I'm just looking for a more advanced book on C, that has info about GNU/Linux-specific stuff (e.g. libraries, dlopen() etc.), and covers advanced topics germane to numerical analysis, like parallel computing. For example,
GNU/Linux Application Programming http://www.amazon.com/GNU-Linux-Appl...816789&sr=11-1
is a good book, I've looked at it before, but I think its focus is applications, not numerical stuff. Correct me if this is a false distinction
SUGGESTION:
1. If you need some "C" code for linear equations, calculus or other "numerical analysis" stuff, "Numerical Recipes in C" is arguably your book. For what it does, it's great (at least my old 2nd Edition was great - I haven't seen the 3rd edition, I don't know one way or the other).
2. If you're writing a subroutine to compute an integral or an FFT, it totally doesn't matter whether you're running Linux, Windows, or any modern platform. "Numerical analysis" is platform-agnostic (IMHO).
3. If you want something to get more "in depth" in your Linux programming skills, then your links sound like great books. Here's another suggestion, if you wish:
4. Finally, if you want to better understand issues with multiple CPUs (and how to better exploit "parallelization" in your own code), this is a truly outstanding book. Difficult (not for the faint of heart!), but useful:
Nevertheless, you've provided some really great recommendations.
Let me just clarify:
Quote:
If you need some "C" code for linear equations, calculus or other "numerical analysis" stuff, "Numerical Recipes in C" is arguably your book.
I was already aware of Numerical Recipes, and I had a copy of it in my hand at the library (the very edition you speak of), but I couldn't get over to the Unix-specific section before I had to leave...nor could I check out that book or another one that looked exactly like what I wanted.
Quote:
If you're writing a subroutine to compute an integral or an FFT, it totally doesn't matter whether you're running Linux, Windows, or any modern platform. "Numerical analysis" is platform-agnostic (IMHO).
That I'm aware of also, however the C books I've encountered (with a few exceptions) are mostly like other programming books, going on and on about Windows when I don't use Windows. They tell me very little that's useful other than a few concepts about the language (like I said, I'm a mathematician, so a book like Beginning C was really below my expectations).
It's not the numerical analysis that I expect to be GNU or Unix-specific, but the hints on using the compiler, debugger, etc. I now have a book for that (C in a Nutshell). The problem is that most books that I've seen that cover that stuff don't say anything about numerical analysis, and they have really impractical examples (things like averaging a set of numbers). I would doubt they would say much about optimizing for numerical routines (e.g., with options specific to gcc) or parallel computing if the book is mainly about something other than numerical analysis.
The best I was hoping for was to get it all in one package. However, I've got the second best thing, with Numerical Recipes, and C in a Nutshell, I think I can hack it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.