Division by zero in rat/rats

Atanas Atanasov ava2102 at columbia.edu
Wed Jun 11 15:54:12 CDT 2008


I applied the patch but still seem to get the same error. I am
attaching my new rat.m file, and the diff with the old one. It is
quite possible that this is an issue of patching since this is the
first time I perform the operation.

Thank you for your help in advance.

Best,
Atanas Atanasov

Quoting "John W. Eaton" <jwe at bevo.che.wisc.edu>:

> On 11-Jun-2008, Atanas Atanasov wrote:
>
> | Bug report for Octave 3.0.0 configured for x86_64-pc-linux-gnu
> |
> | Description:
> | -----------
> |
> | The functions rat and rats should handle the special case of zero
> | input, which it seems currently they do not do. As a result the user
> | recieves a 'warning: division by zero' and wrong output.
> |
> | Repeat-By:
> | ---------
> |
> | rat(0)
> | [p,q] = rat(0)
> | rats(0)
> |
> | Fix:
> | ---
> |
> | It is possible to check whether the input is zero before calling
> | rat/rats but this is tedious. The check should be incorporated in the
> | beginning of rat.m.
>
> Please try the following patch.
>
> jwe
>
>
>





More information about the Bug-octave mailing list