LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-11-2009, 02:02 PM   #1
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Rep: Reputation: 31
Seeking Numerical Analysis in C on GNU/Linux book


Hello Everybody,

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.

Let me know what you think,
Joel
 
Old 03-11-2009, 02:30 PM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
I'm not completely sure what you're looking for, but the "Bible" has long been "Numerical Recipes in C":

http://www.amazon.com/Numerical-Reci...6799529&sr=1-2

It's completely agnostic as far as platform.

CAVEAT : I've got the old 2nd edition (C-oriented). I've not seen the new 3rd edition (C++), and I can't vouch for it one way or the other.
 
Old 03-11-2009, 07:15 PM   #3
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by paulsm4 View Post
I'm not completely sure what you're looking for
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

Thanks,
Joel
 
Old 03-11-2009, 08:52 PM   #4
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Now I'm *really* confused ;-)

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).

"Numerical Recipes in C, 2nd Edition", is freely available online:
http://www.nrbook.com/a/

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:

http://www.amazon.com/Programmers-To...ref=pd_sim_b_6

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:

http://www.amazon.com/Art-Multiproce.../dp/0123705916

'Hope that helps .. PSM
 
Old 03-12-2009, 08:37 PM   #5
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by paulsm4 View Post
Now I'm *really* confused ;-)
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.

Quote:
'Hope that helps .. PSM
It sure does.

Thanks
Joel
 
Old 03-12-2009, 09:44 PM   #6
wje_lq
Member
 
Registered: Sep 2007
Location: Mariposa
Distribution: Debian lenny, Slackware 12
Posts: 808

Rep: Reputation: 178Reputation: 178
Quote:
Originally Posted by paulsm4 View Post
"Numerical Recipes in C, 2nd Edition", is freely available online:
http://www.nrbook.com/a/
for rather strange values of "freely". Details are here.

An alternative is here.
 
Old 03-12-2009, 09:50 PM   #7
wje_lq
Member
 
Registered: Sep 2007
Location: Mariposa
Distribution: Debian lenny, Slackware 12
Posts: 808

Rep: Reputation: 178Reputation: 178
other numerical recipe links

the External Links section of the Wikipedia article
 
  


Reply

Tags
analysis, gnu, linux, programming, science


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
is there a hardware analysis program for Linux? redss Linux - Hardware 2 06-01-2008 03:18 PM
Data analysis in Linux. silin Linux - Software 2 03-17-2006 02:44 AM
GNU/Linux vs. GNU/OpenSolaris win32sux Linux - Software 5 11-27-2005 10:10 AM
reliability analysis of linux os samkupar Linux - General 6 12-05-2003 09:45 AM
new to linux - seeking help stuimrozsm Linux - Newbie 4 12-18-2002 08:17 PM


All times are GMT -5. The time now is 12:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration