LICENSE 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. Copyright (c) 2018, NearForm
  2. All rights reserved.
  3. Redistribution and use in source and binary forms, with or without
  4. modification, are permitted provided that the following conditions are met:
  5. * Redistributions of source code must retain the above copyright
  6. notice, this list of conditions and the following disclaimer.
  7. * Redistributions in binary form must reproduce the above copyright
  8. notice, this list of conditions and the following disclaimer in the
  9. documentation and/or other materials provided with the distribution.
  10. * Neither the name of the <organization> nor the
  11. names of its contributors may be used to endorse or promote products
  12. derived from this software without specific prior written permission.
  13. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  14. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  15. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  16. DISCLAIMED. IN NO EVENT SHALL NearForm BE LIABLE FOR ANY
  17. DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  18. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  19. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  21. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  22. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  23. ------------------------- SPECIAL CEPHES LICENSE ------------------------------
  24. Copyright (c) 2018, Steven Moshier
  25. All rights reserved.
  26. Redistribution and use in source and binary forms, with or without
  27. modification, are permitted provided that the following conditions are met:
  28. * Redistributions of source code must retain the above copyright
  29. notice, this list of conditions and the following disclaimer.
  30. * Redistributions in binary form must reproduce the above copyright
  31. notice, this list of conditions and the following disclaimer in the
  32. documentation and/or other materials provided with the distribution.
  33. * Neither the name of the <organization> nor the
  34. names of its contributors may be used to endorse or promote products
  35. derived from this software without specific prior written permission.
  36. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  37. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  38. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  39. DISCLAIMED. IN NO EVENT SHALL Steven Moshier BE LIABLE FOR ANY
  40. DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  41. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  42. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  43. ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  44. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  45. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  46. ---- EMAIL GIVING SPECIAL LICENSE PERMIT FROM CEPHES AUTHOR STEVEN MOSHIER ----
  47. Delivered-To: andreas.madsen@nearform.com
  48. Received: by 2002:a50:cddc:0:0:0:0:0 with SMTP id h28-v6csp52116edj;
  49. Fri, 7 Sep 2018 16:14:02 -0700 (PDT)
  50. X-Google-Smtp-Source: ANB0VdaJ8YzCIo8Pd/Q7wNj7S+e6aPmvMpZNFdmB7vKIgcyJIMw+gC8rAaDjX0zIeAO8g+s/Pm/d
  51. X-Received: by 2002:a0c:9e5a:: with SMTP id z26-v6mr7591946qve.15.1536362042101;
  52. Fri, 07 Sep 2018 16:14:02 -0700 (PDT)
  53. ARC-Seal: i=1; a=rsa-sha256; t=1536362042; cv=none;
  54. d=google.com; s=arc-20160816;
  55. b=gn7rymZroJyBAgkSBv7ukG7UQE2wp6D+G426Phjiw3yCmCsz2V3w0UtL+Pud+pXDXT
  56. iAWJnytIaOHT/0SE333Inc3/N+amK+mThqTEtU8mFuj3QYOEXsHBouyuBZXw5G0qgao+
  57. u2iH1VlEqLCklwazXhzh99gh8TLicYd/d4kU5Hn5b11G+CACyvgmMVGXghjWoiCe+ba9
  58. 2K1sYskBrA3DMhx0v0x7ACU/iXlbcBdtMFE//HrDC4ekw93nAVdgoFRqNhSEtVRCyPyA
  59. 3tHKV84V9ZeOzNTwoKA04A7YOH1jkWls98ZjFdipyIUKV1sftj1l2eWqYZK6XTfX0zFm
  60. +erQ==
  61. ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
  62. h=mime-version:user-agent:references:message-id:in-reply-to:subject
  63. :to:from:date;
  64. bh=Wb3HEoeLyQIq4UYBEAC8NHvjq6b4Xj7Fmlpy0oiZ8pM=;
  65. b=WWGk93tnvmx7qHOvWCkiYhRW2lkFGEAfKmP454CPbUrFkb2obY8PBoPdql702uNz33
  66. 57GjX2pp/9+jqzwBcjQckhFhsKlRwTjKl1g+ei7wtxY6yVL7haaxIEE4QCsbs3a4qZ5L
  67. KUpfSSl12/0SxPIuOuVJEa17Pg9j94oBqyzwOGtrcLxdrcSdzyUkE3mCI04dxKYhDEAS
  68. MhUDbTgG8fW6dZa+AqmHt4qeEcvxpEKOuG06r9TWdiW6+0gbrKhCfD9tNtfoQLL5n/9k
  69. D9l1blA0haxSl8vh1IGlYNHvN8VEfEWkmAIG3QcBpwa00UeTNLIev3xR8pYBWz3w2qxD
  70. z+ew==
  71. ARC-Authentication-Results: i=1; mx.google.com;
  72. spf=neutral (google.com: 209.17.115.46 is neither permitted nor denied by domain of steve@moshier.net) smtp.mailfrom=steve@moshier.net
  73. Return-Path: <steve@moshier.net>
  74. Received: from atl4mhob08.registeredsite.com (atl4mhob08.registeredsite.com. [209.17.115.46])
  75. by mx.google.com with ESMTPS id 47-v6si7209544qto.215.2018.09.07.16.14.01
  76. for <andreas.madsen@nearform.com>
  77. (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
  78. Fri, 07 Sep 2018 16:14:01 -0700 (PDT)
  79. Received-SPF: neutral (google.com: 209.17.115.46 is neither permitted nor denied by domain of steve@moshier.net) client-ip=209.17.115.46;
  80. Authentication-Results: mx.google.com;
  81. spf=neutral (google.com: 209.17.115.46 is neither permitted nor denied by domain of steve@moshier.net) smtp.mailfrom=steve@moshier.net
  82. Received: from mailpod.hostingplatform.com (atl4qobmail01pod1.registeredsite.com [10.30.71.113])
  83. by atl4mhob08.registeredsite.com (8.14.4/8.14.4) with ESMTP id w87NDxbh013437
  84. (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL)
  85. for <andreas.madsen@nearform.com>; Fri, 7 Sep 2018 19:13:59 -0400
  86. Received: (qmail 23939 invoked by uid 0); 7 Sep 2018 23:13:59 -0000
  87. X-TCPREMOTEIP: 24.34.140.17
  88. X-Authenticated-UID: steve@moshier.net
  89. Received: from unknown (HELO ?192.168.2.8?) (steve@moshier.net@24.34.140.17)
  90. by 0 with ESMTPA; 7 Sep 2018 23:13:59 -0000
  91. Date: Fri, 7 Sep 2018 19:13:54 -0400 (EDT)
  92. From: Stephen Moshier <steve@moshier.net>
  93. X-X-Sender: steve@n2800
  94. To: Andreas Madsen <andreas.madsen@nearform.com>
  95. Subject: Re: License for cephes
  96. In-Reply-To: <CAMShtBamKYVjqsQn4_c-ibi8yXCkHaJr9=+r4J7k1p=fVWi5hQ@mail.gmail.com>
  97. Message-ID: <alpine.DEB.2.20.1809071905330.11567@n2800>
  98. References: <CAMShtBamKYVjqsQn4_c-ibi8yXCkHaJr9=+r4J7k1p=fVWi5hQ@mail.gmail.com>
  99. User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
  100. MIME-Version: 1.0
  101. Content-Type: multipart/mixed; BOUNDARY="8323329-577795007-1536362039=:11567"
  102. This message is in MIME format. The first part should be readable text,
  103. while the remaining parts are likely unreadable without MIME-aware tools.
  104. --8323329-577795007-1536362039=:11567
  105. Content-Type: text/plain; charset=UTF-8; format=flowed
  106. Content-Transfer-Encoding: 8BIT
  107. Andreas,
  108. Thank you for writing. You are welcome to distribute the Cephes material
  109. posted to the net under a BSD license.
  110. I don't think I know what cephes.doc is. The distribution -- either from
  111. netlib.org or moshier.net -- comes with html files that have names like
  112. doubldoc.html for the double precision functions. There could be some
  113. functions not documented, but that's unintentional.
  114. On Tue, 28 Aug 2018, Andreas Madsen wrote:
  115. > Dear Mr. Moshier
  116. > I'm a researcher in machine learning from Denmark. Now and then, I
  117. > implement machine learning algorithms in JavaScript, which is a huge
  118. > challenge because JavaScript doesn't come with built-in or third-party
  119. > implementations of most special functions. I found your amazing cephes
  120. > library in scipy, and later torch, where I can see that you have
  121. > granted them a BSD license. I was was wondering if you would be so
  122. > kind and do the same for us.
  123. >
  124. > This would be an open source package, distributed under BSD. We have
  125. > an early version here: https://github.com/nearform/node-cephes
  126. >
  127. > I also have a few questions/comments regarding cephes:
  128. >
  129. > 1/ I found that some functions are not included in cephes.doc, is this
  130. > because they shouldn't be used directly or is just an accident? The
  131. > functions are (lbeta, btdtr,smirnov, kolmogorov, smirnovi, kolmogi, nbdtri, stdtri, ei, expx2, ra
  132. > dian, sincos, cot, cotdg, log1p, expm1, cosm1, signbit, isnan, isfini
  133. > te, plancki, planckc, planckd, planckw, p1evl, polylog). Especially
  134. > the Kolmogorov–Smirnov distribution and functional inverse variations
  135. > would be nice to use.
  136. >
  137. > 2/ The subtitle "Polynomials and Power Series" is missing for the
  138. > "Double Precision Routines". I'm parsing the cephes.doc file to build
  139. > the documentation, so this is a bit unfortunate, but not a big
  140. > problem.
  141. >
  142. > Thanks again for writing this amazing library, that is truly needed
  143. > and underappreciated.
  144. >
  145. > Best regards
  146. >
  147. >
  148. > --
  149. > Andreas Madsen
  150. > Data Science Consultant at nearForm | +4522120174 |
  151. > andreas.madsen@nearform.com
  152. > LinkedIn Twitter Github
  153. >
  154. > ______________________________________________________________________
  155. > nearform.com Follow us on Twitter, LinkedIn, Facebook, YouTube
  156. >
  157. >
  158. >
  159. >
  160. --8323329-577795007-1536362039=:11567--