Aw: Re: Re: no tests for trigonometric functions? need help / hints how to adapt tests for gnumeric 'long' version,

newbie nullzwei via gnumeric-list <[email protected]> Tue, 31 May 2022 12:45:12 +0200
Newsgroups gmane.comp.gnome.apps.gnumeric
Message-ID <trinity-3d6dde31-e470-44ea-995e-a2841f6dbff9-1653993912904@3c-app-gmx-bs02>
--===============7516629878389222614==
Content-Type: text/html; charset=UTF-8

<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div style="font-family: Verdana;font-size: 12.0px;">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>&nbsp;<br/>
but not yet clear to me:&nbsp;<br/>
&nbsp;<br/>
- should &#39;trig.xls&#39; be subject to a test, or do we have enough testing for trigonometric functions in other tests, e.g. that for complex numbers?&nbsp;<br/>
&nbsp;<br/>
- how to deal with - construct tests for functions / ranges where &#39;long&#39; and &#39;double&#39; version have justified different results?&nbsp;<br/>
&nbsp;&nbsp;&nbsp; ( how to build tests which allow / demand improved results, but accept &#39;double accuracy results&#39; when using double datatype? )&nbsp;<br/>
<br/>
( O.T. but to show that answers are read:<br/>
@John Denker, think you wanted to write 70742377520284**40**.275766 / 2^52 for the zero-point of cot(),<br/>
yes, I&#39;m aware that &pi; is irrational and even most rational values can only be approximated by bin-FP figures. My idea wasn&#39;t to blame the FPU for not being member of the mission impossible team, but to apply another understanding of the argument. If it&#39;s just a numerical value ... calculate the trig functions as good as we can, evtl. we can do a little better using long precision ( mean to have seen a 60 significant decimal digit value assigned to a **double** variable &#39;y&#39; in code ), and evtl. we can do a little better accounting the periodicity of or mathematical substitutions between the trig functions ... not yet evaluated.&nbsp;<br/>
But if the argument obviously contains symbols for values which can&#39;t be represented, or functions like pi() which pretend to calculate a irrational or irrepresentable value &#39;as good as possible&#39;, then it&#39;s justified to achieve an &#39;as good as possible&#39; result by taking the approximation error off the table ... if we can. wouldn&#39;t mind to open an issue &#39;can trig function calculations be improved?&#39;, but I&#39;m not far enough in evaluating, and at the moment I&#39;m busy with other issues. )&nbsp;<br/>
&nbsp;<br/>
:-)</div>
</div>
</div></div></body></html>

--===============7516629878389222614==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
gnumeric-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gnumeric-list

--===============7516629878389222614==--