Re: [sv-bc] $dist_ functions questions

From: Paul Floyd <Paul_Floyd@mentor.com>
Date: Sun Jun 05 2011 - 05:38:27 PDT

Bresticker, Shalom wrote:

>Hi, Paul.
>
>
>
>>Can anyone point me to information about the licence for using the C
>>source code in the 1364-2005 LRM please?
>>
>>
>
>[SB] I can't point you right now to an official statement, but I am sure that no license is required, just as no license is required for any other part of the standard, except possibly some of the optional encryption algorithms.
>
>The code was donated by Cadence, which removed its copyright.
>See http://boydtechinc.com/btf/archive/btf_1998/0194.html.
>
>

OK, thanks.

>Note also that the code is not 64-bit portable, see http://www.boyd.com/1364_btf/report/full_pr/220.html.
>
>
>
I'll do some tests and report back on that.

>>I also have a few remarks about these functions. t and chi_square have
>>integral deg_of_freedom, whilst mathematically speaking I'd expect to be
>>able to use reals.
>>
>>
>
>[SB] I don't know why, but 20.15.2 is clear that deg_of_freedom is deliberately integral:
>
>"The degree_of_freedom argument used with the $dist_chi_square and $dist_t functions is an integer
>input that helps determine the shape of the density function. Larger numbers spread the returned values
>over a wider range."
>
>
>
>
I suppose it'd be hard to change now, but here is a reference
http://mathworld.wolfram.com/Chi-SquaredDistribution.html
clearly showing a continuous r for degree of freedom.

>>and including math.h rather than
>>directly declaring pow and sqrt.
>>
>>
>
>[SB] I don't see pow declared. Did you mean log()?
>
>

Indeed I did mean log().

Regards
Paul Floyd

-- 
Dr Paul Floyd
Mentor Graphics Corporation
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Sun Jun 5 05:38:46 2011

This archive was generated by hypermail 2.1.8 : Sun Jun 05 2011 - 05:38:58 PDT