Gavin Howard
f420be27fa
Remove "All rights reserved" from license headers for FreeBSD
...
After looking up what its use was, I found this link:
https://opensource.stackexchange.com/questions/2121/mit-license-and-all-rights-reserved/4403#4403
Apparently, as I was told by FreeBSD, it's obsolete. Also the licenses I
have from history only say to preserve the copyright notice and
"conditions below," which taken literally does not include the "All
rights reserved" portion.
2 years ago
Gavin Howard
29e00ba6db
Add SPDX identifiers to files
...
This is a request from FreeBSD.
2 years ago
Zach van Rijn
6d2cf3fdc2
Update copyright year 2019 --> 2020.
3 years ago
Gavin Howard
7345cb9d20
Change all of the license headers
4 years ago
Gavin Howard
bc32b7db66
Shrink the math library
4 years ago
Gavin Howard
e27c46a7f5
Fix bugs in the math libraries found by inspection
4 years ago
Gavin Howard
aed891c790
Shorten the math library a touch
4 years ago
Gavin Howard
5184b33e67
Shorten the internal math library
4 years ago
Gavin Howard
4e6ab0ae05
Remove some extra stuff from the bc math library
4 years ago
Gavin Howard
b5253c5a8f
Shrink the internal math library
4 years ago
Gavin Howard
88c25301fa
Reduce LOC
4 years ago
Gavin Howard
db28f43b5b
Allow newlines after a header comment in lib.bc
4 years ago
Gavin Howard
63241af88d
Fix sine
4 years ago
Gavin Howard
dccaf6f161
Allow one digit of error in transcendental functions
4 years ago
Gavin Howard
b6ca06d446
Move the generated stuff to another directory
4 years ago
Gavin Howard
9c9dcdb567
Continue trying to make sine work
4 years ago
Gavin Howard
277cd9b333
Fix more sine problems
...
Turns out that it is tricky to get right. No wonder GNU bc has bugs.
4 years ago
Gavin Howard
c3a43b0940
Fix even more problems with sine
4 years ago
Gavin Howard
7d568aed2b
Fix more sine problems
4 years ago
Gavin Howard
4cb2a716a3
Fix sine tests and implementation
...
As it turns out, GNU bc has a bug in sine (and maybe others). I will
work around that later. However, this commit fixes the bugs in the tests
and the actual bugs in my implementation of sine.
4 years ago
Gavin Howard
f466d0205c
Add a failing log test and fix it
4 years ago
Gavin Howard
d461724423
Fix problems with a() and e()
4 years ago
Gavin Howard
8f1966a2a5
Fix bug in arctangent
4 years ago
Gavin Howard
a416e09e05
Fix problems with l()
4 years ago
Gavin Howard
2643bdf792
Fix problems with e()
4 years ago
Gavin Howard
7f78f8fd29
Fix problems in the bessel function
4 years ago
Gavin Howard
ebf479c6a2
Reduce number of chars in lib.bc
4 years ago
Gavin Howard
d812de7182
Fix a problem with cosine
4 years ago
Gavin Howard
801730a04c
Reduce the work for sine
4 years ago
Gavin Howard
e126ad37fc
Make sure the math lib passes -s
4 years ago
Gavin Howard
6a11d7968b
Move the bc lib to a different folder
...
This is in preparation for adding dc.
4 years ago
Gavin Howard
32f332bed1
Remove the debugging code from lib.bc
4 years ago
Gavin Howard
95ed5751af
Add debugging prints to lib.bc (these will be removed later)
4 years ago
Gavin Howard
c2762a2989
Fix bugs and style is lib.bc
4 years ago
Gavin Howard
6d175b0335
Shrink the size of lib.bc
4 years ago
Gavin Howard
96780f37db
Implement a(x) now that I understand it
4 years ago
Gavin Howard
db919390cc
Add j(n,x) after understanding the algorithm
...
Philip Nelson is really clever. He figured out what the common factors
are in each term and calculated that up front. I don't think I would
have thought of that.
4 years ago
Gavin Howard
3908b97c9f
Add s(x) after understanding the algorithm
4 years ago
Gavin Howard
538f1419cb
Add l(x) after going through the GNU bc version
...
I now understand what is going on
4 years ago
Gavin Howard
97d45123d7
Add e(x) to the math library
...
I understand it now. Yes!
4 years ago
Gavin Howard
140a343829
Remove all code (except cosine from the bc lib)
...
I am doing this because I don't understand the math behind it. Also, I
feel like I wrongly copied code. I am going to look at the comments on
the GNU bc library and see if I can write the algorithms myself, in my
own way.
4 years ago
Gavin Howard
675f70c65b
Implement a rough mathlib
4 years ago
Gavin Howard
f1e302e742
Set scale in the math library
4 years ago
Gavin Howard
eac4710367
Add a header comment to the math library
4 years ago
Gavin Howard
fe2351d5fd
Update some code for the lib
4 years ago
Gavin Howard
4a5aad523c
Add empty tests for the ones that exist in all.txt
4 years ago