More help with rat

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

More help with rat

Rik-4
Apparently the Matlab version of rat accepts complex numbers.  Could
someone try the following and report the results?

rat (complex (0.5, pi))

--Rik

Reply | Threaded
Open this post in threaded view
|

Re: More help with rat

John Frain

John C Frain, Ph.D.

Economics Department             3 Aranleigh Park
Trinity College Dublin                 Rathfarnham
College Green                           Dublin 14
Dublin 2                                    Ireland
Ireland


On Mon, 10 Dec 2018 at 21:41, Rik <[hidden email]> wrote:
Apparently the Matlab version of rat accepts complex numbers.  Could
someone try the following and report the results?

rat (complex (0.5, pi))

--Rik

with Matlab 2028b on Windows 10

>> 
rat (complex (0.5, pi))

ans =

  3×18 char array

    '1 + 1/(-2)        '
    ' +i* ...          '
    '3 + 1/(7 + 1/(16))'

>>