Subject: | bsin() and bcos() are broken |
The naive implementations of bsin() and bcos() only work for input values close to zero.
The following should be approximately equal to zero:
$ perl -MMath::BigFloat -wle '$pi = Math::BigFloat -> bpi(); print Math::BigFloat -> bsin(40 * $pi)'
-9415351529.817955793100396582288728814819
The following should be approximately equal to one:
$ perl -MMath::BigFloat -wle '$pi = Math::BigFloat -> bpi(); print Math::BigFloat -> bcos(40 * $pi)'
7538616183.627138948100717893279061270537