Hi Niklas,
Niklas Nebel schrieb:
On 05/08/10 21:02, Regina Henschel wrote:
I have notice a constraint "SinOverflow" (which is x>=134217728) in
analysishelper.cxx in scaddins. What is the special reason for it?
In other places with sin() the version ::rt::math::sin() is used to
get a guard for overflow. That would result in constraint
x<=9,22337203685478E+018, which is much larger.
If there is no special reason, should I replace it, while I work on
the missing complex trigonometric functions?
The 2^63 limit is there to prevent invalid results (outside of the range
from -1 to 1).
I have guessed from the comment in the source, that there are problems.
The 2^27 limit also prevents inaccurate results, like
Leonard described. Both can be justified. The pragmatic solution, to
avoid breaking any existing usage, might be to keep the separate limit
for the scaddins "complex number" functions, at least for now.
"to avoid breaking any existing usage" is a good argument to not change
anything in IMSIN or IMCOS. But what limit shall I use in the other
complex trigonometric functions? (IMTAN, IMCOT, IMCSC, IMSEC, IMCOSH,
IMSINH, IMCSCH, IMSECH). I personally think, that huge arguments are not
needed. For those, who really need them, a spreadsheet application is
likely the wrong program. On the other hand this is the only place,
where there is such a limit to sin(), afaik. Please decide.
kind regards
Regina
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]