[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Matlab output from "rats" wanted
From: |
Laurent Hoeltgen |
Subject: |
Re: Matlab output from "rats" wanted |
Date: |
Fri, 21 Nov 2014 10:11:17 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.2.0 |
On 11/21/2014 10:01 AM, Andreas Weber wrote:
> Dear users,
>
> Matlabs "rats" treats the second parameter "strlen" differently than
> Octave. Can someone with access to Matlab run this and post the result?
>
> ['>', rats(pi,3), '<']
> ['>', rats(pi,4), '<']
> ['>', rats(pi,5), '<']
> ['>', rats(pi,9), '<']
> ['>', rats(pi,12), '<']
> ['>', rats(pi,25), '<']
> ['>', rats(pi,30), '<']
> ['>', rats(pi,40), '<']
>
> rats([3, pi], 3)
> rats([3.1, pi], 3)
> rats([4, pi], 3)
>
>
> TIA, Andy
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-octave
Hi,
output from Matlab 2014a:
>> ['>', rats(pi,3), '<']
['>', rats(pi,4), '<']
['>', rats(pi,5), '<']
['>', rats(pi,9), '<']
['>', rats(pi,12), '<']
['>', rats(pi,25), '<']
['>', rats(pi,30), '<']
['>', rats(pi,40), '<']
rats([3, pi], 3)
rats([3.1, pi], 3)
rats([4, pi], 3)
ans =
> * <
ans =
> * <
ans =
> 22/7 <
ans =
> 355/113 <
ans =
> 355/113 <
ans =
> 1146408/364913 <
ans =
> 80143857/25510582 <
ans =
> 80143857/25510582 <
ans =
3 *
ans =
* *
ans =
4 *
>>