Two different calculations here:

   0^0
1
   0%0
0

1 and 0 are both special for operations based on multiplication.

Thanks,

-- 
Raul

On Thu, Sep 21, 2017 at 11:00 AM, Don Guinn <dongu...@gmail.com> wrote:
> Actually it is zero. But if your app depends on it being zero or one then
> maybe you should make sure it's a good design.
>
>    0%0
> 0
>
>
> On Sep 21, 2017 8:39 AM, "Henry Rich" <henryhr...@gmail.com> wrote:
>
>> I don't know of any "random" results.  There are inexact results stemming
>> from the approximations inherent in limited-precision floating-point
>> arithmetic.  If those approximations cause problems in your application,
>> stay away from floating-point.
>>
>> J does not conform to IEEE always; in particular 0^0 is 1.  We think that
>> is an improvement on IEEE-754.
>>
>> Henry Rich
>>
>>
>> On 9/21/2017 9:54 AM, Erling Hellenäs wrote:
>>
>>> We had problems with random results in another thread, so I looked at
>>> this. It seems obvious that these problems exist. If you want you can deny
>>> it of course. /Erling
>>>
>>>
>>> Den 2017-09-21 kl. 15:44, skrev Raul Miller:
>>>
>>>> I would start by better understanding the specific problem I was
>>>> trying to solve.
>>>>
>>>> (As opposed to coming up with a solution and then looking for a
>>>> problem that fits to it...)
>>>>
>>>> Thanks,
>>>>
>>>>
>>> ----------------------------------------------------------------------
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>>
>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to