For Programmers: Free Programming Magazines  


Home > Archive > C > June 2006 > "Numerical Recipes in C" code









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author "Numerical Recipes in C" code
Abhi

2006-06-18, 6:56 pm

Hi..
I wanted the C source code in machine readable format for the book
"Numerical Recipes in C".
I got hold of the pdf version of the book somehow. Does anyone have the
complete C code of the book?. If yes,..can you please mail me the code
or somehow share it with me?.
With Regards,
Abhishek S

Jack Klein

2006-06-18, 6:56 pm

On 18 Jun 2006 15:03:31 -0700, "Abhi" <abhisheksgumadi@gmail.com>
wrote in comp.lang.c:

> Hi..


Hi, yourself. The first thing you need to learn about is proper
usenet netiquette. Your post does not belong in comp.std.c at all, it
is a group for discussion about the ISO C international standard,
past, present, and future. Second, you multiposted, that is post the
same message to more than one group (two that I have seen so far)
separately. The proper method is cross-posting, after you make sure
(which you did not) that your message is topical in all the groups
involved.

> I wanted the C source code in machine readable format for the book
> "Numerical Recipes in C".


I want a billion dollars, want to trade?

> I got hold of the pdf version of the book somehow. Does anyone have the
> complete C code of the book?. If yes,..can you please mail me the code
> or somehow share it with me?.


Oh, sorry, I want my million dollars legally. You seem to want
something illegally. Consider the web page
http://library.lanl.gov/numerical/bookcpdf.html, where the book is
available for electronic viewing, with permission of the copyright
holders. Did you notice this paragraph:

"Thanks to special permission from Cambridge University Press, we are
able to bring you the complete Numerical Recipes in C book On-Line! To
utilize this resource, you will need an Adobe Acrobat viewer linked as
a helper program to your web browser. Permission is granted by the
copyright owners for users of this resource to make one paper copy of
these Acrobat files for their own personal use. Further reproduction,
or the extraction of, or copying of, machine readable files to any
server computer, is strictly prohibited. This on-line resource is not
intended as a substitute for purchasing the book, or for obtaining a
license for the use of Numerical Recipes source code."

And then just a little farther down the page:

"Downloads of the Numerical Recipes source code in machine-readable
format are not available as part of this free resource. For
information on downloads, please go to the Numerical Recipes On-Line
Software Store."

I am pretty sure that you have seen this information, on this page or
one very much like it. Very few people use the phrase "machine
readable" in casual conversation or correspondence these days.

Apparently you are aware that the source code is not free, and should
be purchased for legal use. And apparently, you don't care, and
instead are trying to illegally steal copyrighted intellectual
property.

Most regulars in these two groups, and hopefully any others that you
posted this to, are very negative on the idea of stealing other
people's work, particularly their source code. That is because many
of the regulars here make a living as working programmers, and don't
want their work stolen either.

> With Regards,
> Abhishek S


Thanks to Google's archive, you are now on record forever as someone
who wants to steal intellectual property. Consider the implications
of that.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~.../FAQ-acllc.html
Nelu

2006-06-18, 6:56 pm

"Abhi" <abhisheksgumadi@gmail.com> writes:

> Hi..
> I wanted the C source code in machine readable format for the book
> "Numerical Recipes in C".
> I got hold of the pdf version of the book somehow. Does anyone have the
> complete C code of the book?. If yes,..can you please mail me the code
> or somehow share it with me?.
> With Regards,
> Abhishek S


I don't thing "Numerica Recipes" are free and neither is the machine
readable source code. You can buy them from http://www.nr.com, and if
I'm right, anyone giving you the code may commit an illegality. If you
consider buying them make sure you get the C sources.

--
Ioan - Ciprian Tandau
tandau _at_ freeshell _dot_ org (hope it's not too late)
(... and that it still works...)
Francis Glassborow

2006-06-19, 3:56 am

In article <4bob9251a8v26r33e34aopampurklp6v1r@4ax.com>, Jack Klein
<jackklein@spamcop.net> writes
>Thanks to Google's archive, you are now on record forever as someone
>who wants to steal intellectual property. Consider the implications
>of that.


And in case the OP does not realise, it makes him tainted for all
employment as a C programmer. Suppose he works on what becomes an
extremely successful piece of software that uses one or more algorithms
that are covered in that book (note the algorithms are not copyright,
only the source code is). The owners of the IP for Numerical Recipes now
have evidence that someone working on the development has breached their
IP and because of the success of the project it is worth pursuing
royalties.

--
Francis Glassborow ACCU
Author of 'You Can Do It!' and "You Can Program in C++"
see http://www.spellen.org/youcandoit
For project ideas and contributions: http://www.spellen.org/youcandoit/projects
Skarmander

2006-06-19, 6:59 pm

Jack Klein wrote:
<snip>
> Apparently you are aware that the source code is not free, and should
> be purchased for legal use. And apparently, you don't care, and
> instead are trying to illegally steal copyrighted intellectual
> property.
>

The phrase smells pleonastic. And I'm still not comfortable with "stealing"
as a synonym for "disenfranchising someone of their exclusive right to
distribute", but that's probably just me. Calling it "stealing" does convey
the moral reproach more succinctly.

S.


Morris Dovey

2006-06-19, 6:59 pm

Skarmander (in 4496e055$0$31648$e4fe514c@news.xs4all.nl) said:

| Jack Klein wrote:
| <snip>
|| Apparently you are aware that the source code is not free, and
|| should be purchased for legal use. And apparently, you don't
|| care, and instead are trying to illegally steal copyrighted
|| intellectual property.

| The phrase smells pleonastic. And I'm still not comfortable with
| "stealing" as a synonym for "disenfranchising someone of their
| exclusive right to distribute", but that's probably just me.
| Calling it "stealing" does convey the moral reproach more
| succinctly.

Hmm... Given that the party with the exclusive right to distribute has
attached a price tag, with what other synonym would you be
comfortable?

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto


Jack Klein

2006-06-19, 9:59 pm

On 19 Jun 2006 15:25:28 -0700, "Abhi" <abhisheksgumadi@gmail.com>
wrote in comp.lang.c:

> Why such a long discussion?
>
> I anyways got the Code Contents from my friend on a cd.
> Its got everything I wanted ..the whole package and infact he had taken
> it from another friend long back.
> You people continue your discussion which I feel is not at all relevant
> to any C matters.
>
> Bye guys


Now you have confessed to the entire world that you have deliberately
stolen copyrighted material. Do you realize that with Google's
archive, the evidence will probably be around forever? Do you realize
that at least some employers do a Google search on job applicants
before deciding whether to hire them?

You are a dishonest thief, as well as a top poster.

I work for a very large, multinational corporation that employs a lot
of programmers in India, as well as in the USA and Asia. Not
outsourcing, actual employees. I will make sure that you will never
become one of them.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~.../FAQ-acllc.html
Abhi

2006-06-20, 3:59 am

Hi All,
I am a begineer in all these topics and was never aware of so much
danger in copying IP.
Please be assured that I wont use this code for developing any big C
application for any business. Its just that I wanted to run some code
of that book for I was trying to solve matrix equations using Gauss
Jordan method. I have run the code and I have made some modifications
to it to suit my requirements. After reading the above discussion and
after having shown it to my friend who runs a big business of his own,
he explained to me how important are these facts.So, I have completely
disposed off that material except for two functions which I have used
for matrix equations.
Now, can I keep atleast those two functions? My friend says keeping
just the two functions since I have already modified it and since I
wouldn't be indulging in such activities henceforth shouldn't do much
of a problem.
He has agreed to buy the product for me and I have already placed an
order for it. Must be getting it shipped in a day or two.
Thank you and sorry for taking it lightly.Infact, I took it a bit too
lightly itself. :-)



Jack Klein wrote:
> On 19 Jun 2006 15:25:28 -0700, "Abhi" <abhisheksgumadi@gmail.com>
> wrote in comp.lang.c:
>
>
> Now you have confessed to the entire world that you have deliberately
> stolen copyrighted material. Do you realize that with Google's
> archive, the evidence will probably be around forever? Do you realize
> that at least some employers do a Google search on job applicants
> before deciding whether to hire them?
>
> You are a dishonest thief, as well as a top poster.
>
> I work for a very large, multinational corporation that employs a lot
> of programmers in India, as well as in the USA and Asia. Not
> outsourcing, actual employees. I will make sure that you will never
> become one of them.
>
> --
> Jack Klein
> Home: http://JK-Technology.Com
> FAQs for
> comp.lang.c http://c-faq.com/
> comp.lang.c++ http://www.parashift.com/c++-faq-lite/
> alt.comp.lang.learn.c-c++
> http://www.contrib.andrew.cmu.edu/~.../FAQ-acllc.html


jaysome

2006-06-20, 3:59 am

On 19 Jun 2006 23:07:13 -0700, "Abhi" <abhisheksgumadi@gmail.com>
wrote:

>Hi All,
>I am a begineer in all these topics and was never aware of so much
>danger in copying IP.
>Please be assured that I wont use this code for developing any big C
>application for any business. Its just that I wanted to run some code
>of that book for I was trying to solve matrix equations using Gauss
>Jordan method. I have run the code and I have made some modifications
>to it to suit my requirements. After reading the above discussion and
>after having shown it to my friend who runs a big business of his own,
>he explained to me how important are these facts.So, I have completely
>disposed off that material except for two functions which I have used
>for matrix equations.
>Now, can I keep atleast those two functions? My friend says keeping
>just the two functions since I have already modified it and since I
>wouldn't be indulging in such activities henceforth shouldn't do much
>of a problem.
>He has agreed to buy the product for me and I have already placed an
>order for it. Must be getting it shipped in a day or two.
>Thank you and sorry for taking it lightly.Infact, I took it a bit too
>lightly itself. :-)


Abhi:

If your case ever goes to trial, then the judge and/or jury should
find in your favor. And you can keep those two functions you modified.
And you can someday possibly work for Jack Klein.

All of this is predicated on, of course, you showing us a receipt for
that supposed purchase of yours :^)

Regards
--
jay
Keith Thompson

2006-06-20, 3:59 am

"Abhi" <abhisheksgumadi@gmail.com> writes:
> I am a begineer in all these topics and was never aware of so much
> danger in copying IP.


Please don't top-post. See <http://www.caliburn.nl/topposting.html>.

> Please be assured that I wont use this code for developing any big C
> application for any business. Its just that I wanted to run some code
> of that book for I was trying to solve matrix equations using Gauss
> Jordan method. I have run the code and I have made some modifications
> to it to suit my requirements. After reading the above discussion and
> after having shown it to my friend who runs a big business of his own,
> he explained to me how important are these facts.So, I have completely
> disposed off that material except for two functions which I have used
> for matrix equations.
> Now, can I keep atleast those two functions? My friend says keeping
> just the two functions since I have already modified it and since I
> wouldn't be indulging in such activities henceforth shouldn't do much
> of a problem.
> He has agreed to buy the product for me and I have already placed an
> order for it. Must be getting it shipped in a day or two.
> Thank you and sorry for taking it lightly.Infact, I took it a bit too
> lightly itself. :-)


This is *not* the place to ask about intellectual property law. I
have no clue whether keeping your two functions would be ok. If
you've licensed the source code in question, read the license. If you
don't understand the license, ask a lawyer.

If somebody here gave you advice, and you followed it, the liability
would be yours.

--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
micans@gmail.com

2006-06-20, 3:59 am

Abhi wrote:
> Hi..
> I wanted the C source code in machine readable format for the book
> "Numerical Recipes in C".
> I got hold of the pdf version of the book somehow. Does anyone have the
> complete C code of the book?. If yes,..can you please mail me the code
> or somehow share it with me?.
> With Regards,
> Abhishek S


As others have pointed out the code must be licensed, and you have
gracefully acknowledged this issue.

This very issue came to my attention only after having bought the book.
I have to say that I was very disappointed. Rather than having acquired
a book in the long scientific tradition of sharing and furthering
knowledge, I had obtained something that was worse than useless (to
me). [Of course I should have checked before buying]. It is worse than
useless because I (and my employer) typically release code under
GPL-type licenses. This means my best bet is to burn (or sell) the
book and never read its contents, as doing so might taint my code with
something glimpsed from the book.

The book undoubtebly has its audience, but to me it is just a honeypot
for the scientifically-interested that is best avoided.

Anyway, if e.g. the GNU General Public License would be appropriate for
your code (and you might want to consider this for more than just a few
seconds) there are other resources available.
One example is the Gnu Scientific Library.

Stijn

Dann Corbit

2006-06-24, 7:58 am

"Abhi" <abhisheksgumadi@gmail.com> wrote in message
news:1150783633.637376.69730@y41g2000cwy.googlegroups.com...
> Hi All,
> I am a begineer in all these topics and was never aware of so much
> danger in copying IP.
> Please be assured that I wont use this code for developing any big C
> application for any business. Its just that I wanted to run some code
> of that book for I was trying to solve matrix equations using Gauss
> Jordan method. I have run the code and I have made some modifications
> to it to suit my requirements. After reading the above discussion and
> after having shown it to my friend who runs a big business of his own,
> he explained to me how important are these facts.So, I have completely
> disposed off that material except for two functions which I have used
> for matrix equations.
> Now, can I keep atleast those two functions? My friend says keeping
> just the two functions since I have already modified it and since I
> wouldn't be indulging in such activities henceforth shouldn't do much
> of a problem.
> He has agreed to buy the product for me and I have already placed an
> order for it. Must be getting it shipped in a day or two.
> Thank you and sorry for taking it lightly.Infact, I took it a bit too
> lightly itself. :-)


If you buy a copy of the book and use the code as described under the
license agreement, then I can't see any problems.

I suggest instead use of some of the excellent codes that are better
constructed and far more lenient in license.

For instance the cephes collection for scientific functions that you lack:
http://www.moshier.net/#Cephes

Atlas for linear algebra:
http://math-atlas.sourceforge.net/

etc. There is no need to violate anyone's intellectual property rights.
Generally speaking, for any sort of application you might like, someone will
have written a package that does the job with very little restrictions on
use. When an author creates a tool set, it is only right that you follow
the author's explicit instructions (and any implicit instructions implied by
law). Imagine if you wrote a package. You might want to get paid for its
use. You might want to get credit, but let it be used freely. If someone
has spent a few hundred or a few thousand hours working on something, it is
only just and right that we abide by their wishes in exactly the same manner
that we would like to be treated ourselves.

Further, if you have specific questions about numerical software, probably
news:sci.math.num-analysis is a better location to ask because it is focused
on doing mathematics with computers.

I own a copy of all of the Numerical Recipies books for C and C++ and I
think that the text is above average but the code is below average. The C++
code is much better than the C code, which is sub-par.

I think that you should familiarize yourself with the meaning of software
licenses. You should know what GPL, LGPL, Berkeley, Apache, etc. sort of
licenses mean. If someday you will work for a sofware company it is crucial
that you understand this. You could expose your company to a billion dollar
lawsuit trying to save $50 if you act incompetently.

Sourceforge:
http://sourceforge.net/

is my home away from home. Learn to use the resources that are at your
fingertips.

And if you have questions about the C programming language come here.


Walter Roberson

2006-06-24, 7:58 am

In article <87bqsode0a.fsf@benpfaff.org>,
Ben Pfaff <blp@cs.stanford.edu> wrote:
>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) writes:


[color=darkred]
>The earliest publication date I can quickly find for the
>Numerical Recipes books on amazon.com is 1986. Because patents
>only last 17 to 20 years, it is unlikely that there are any
>remaining material in the original Numerical Recipes that could
>infringe a patent.


I'm a bit fuzzy on patent renewals. I did find a clear statement
that in the USA patents can only be renewed up to the original term,
but in my chasing I wasn't able to figure out what the whole
"patent maintenance fee" was all about, and found one uspto reference
that I interpreted as hinting that patent maintenance fees are no longer
in use in the USA.

The copyright holders appear to be Cambridge University Press, in the UK;
I didn't try to follow up to examine UK patent law.

The OP was asking specifically about Numerical Recipies in C, which was
published in 1988, 18 years ago, which was before the USA changed the
way it determined patent longevity. If I found the correct summary
sections, in that case any applicable patent would last either
17 years after patent approval or 20 years after patent application,
but I misremember now whether that was "the earlier" or "the later"
of the two dates. As the C programs might in theory use different
patents than the programs in the original book, there is a legal possibility
that there is a remaining patent or three involved in the NR in C book.
I don't really think there is [especially as I see no patent numbers
listed in the preface], but I cannot currently rule the possibility out.
The 2nd Edition (more likely to be what the OP was looking at) was 1992
so changed programs could plausibly have a few years of patents yet.


Of course, this whole patent discussion is predicated upon the
unproven premise that some court somewhere might rule that a
translatation or rewrite of the programs was sufficiently distinct
from the original to no longer be a "derived work" (since, after all,
copyright is explicitly not able to protect -ideas-, only expression of
them, so there must be -some- boundaries as to what might be
deemed "derived".) One of the other posters named what is probably
the easiest solution: use one of the other already existing GPL or
license-free numerical libraries.
--
Okay, buzzwords only. Two syllables, tops. -- Laurie Anderson
Richard Bos

2006-06-24, 7:59 am

jaysome <jaysome@spamcop.net> wrote:

> On 19 Jun 2006 23:07:13 -0700, "Abhi" <abhisheksgumadi@gmail.com>
> wrote:
>
[color=darkred]
> If your case ever goes to trial, then the judge and/or jury should
> find in your favor.


I would not put money on this. I would not put money on the opposite,
either, but I see no reason to be sure of this.

> And you can keep those two functions you modified.
> And you can someday possibly work for Jack Klein.


I would not put money on this, either. I, for one, would not employ him.
Regardless of whether he is or is not in the right, a predictable and
very expensive lawsuit is not something you want as an employer.

Richard
Your Uncle

2006-06-27, 3:56 am


"jaysome" <jaysome@spamcop.net> wrote in message
news:db5f92hmk0iirvtme8r96qnjmtnr200etk@
4ax.com...
> On 19 Jun 2006 23:07:13 -0700, "Abhi" <abhisheksgumadi@gmail.com>
> wrote:
>
>
> Abhi:
>
> If your case ever goes to trial, then the judge and/or jury should
> find in your favor. And you can keep those two functions you modified.
> And you can someday possibly work for Jack Klein.
>
> All of this is predicated on, of course, you showing us a receipt for
> that supposed purchase of yours :^)

I'm having deja vu all over again. I think one is well-advised to have a
conjectural judge judy on his shoulder to consult when one conducts himself.
Period. Do you know what Judge Judy would think of ':^)' as lying
elaboration fills her courtroom? cheers, furunculus


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com