[SciPy-dev] cephes.tandg test

David M. Cooke cookedm at physics.mcmaster.ca
Wed Jan 11 08:14:10 CST 2006


On Jan 11, 2006, at 08:44 , David M. Cooke wrote:

> On Jan 11, 2006, at 07:46 , Arnd Baecker wrote:
>
>> Hi,
>>
>> On Wed, 11 Jan 2006, David M. Cooke wrote:
>>
>>> On Jan 10, 2006, at 09:35 , Arnd Baecker wrote:
>> [...]
>>>> DESIRED: 1.0
>>>> ACTUAL: 1.0000000000000002
>>>> ------------------------------------------------------------------- 
>>>> -
>>>> --
>>>>
>>>> The is caused by the strict equality test:
>>>>
>>>>     def check_tandg(self):
>>>>         assert_equal(cephes.tandg(45),1.0)
>>>>
>>>> Is there a reason, why one should get 1.0 up to the last bit?
>>>> If not an `assert_almost_equal` might be more appropriate?
>>>
>
>> What can I do to find out what is going wrong with tandg
>> (not that I need that function at all, but a failing unit
>> test could point to something deeper ...)
>
> Well, at the moment, these are just pointing to my messing up of
> tandg :) Since I can reproduce your failures, I'll be able to fix it.

... and it should be fixed now, with revision 1546.

-- 
|>|\/|<
/------------------------------------------------------------------\
|David M. Cooke              http://arbutus.physics.mcmaster.ca/dmc/
|cookedm at physics.mcmaster.ca




More information about the Scipy-dev mailing list