Rational Numbers

General APL language issues

Rational Numbers

Postby mwr0707 on Thu Oct 29, 2015 1:06 am

I'm a new Dyalog user and using it to help my kids with math and problem solving concepts.

I noticed that at Dyalog'11, Roger Hui gave a talk about experimental support of rational numbers.

Are there any plans to fully implement this as you have done with complex numbers?
mwr0707
 
Posts: 17
Joined: Wed Oct 28, 2015 9:49 am

Re: Rational Numbers

Postby JohnS|Dyalog on Sun Nov 08, 2015 9:08 pm

Proper integration of rational numbers into Dyalog APL is an ongoing research project.
In the meantime check out operator rats in dfns.dws: http://dfns.dyalog.com/n_rats.htm.
JohnS|Dyalog
 

Re: Rational Numbers

Postby Yves on Mon Nov 30, 2015 5:40 pm

Hi All,
what Beautiful subject !

for PrQ with P greater than Q
example : J give me 1285290289249r409120605684 (special number)
how many k inside ?
P = K×Q + X
so i write naturally after simplifying K + XrQ
in my case, it is 3.... but it is not spontaneous

egyptian fraction is like 1rN
how extract simply the lower N to reduce PrQ with 1rN
in my case, i find 1r7... not really spontaneous

for the case 1285290289249r409120605684, the result is
3 + 1r7 + 517328615r409120605684
or 3 + 1r7 + 0.00126449
what is the next N ?

i think it is a good way. we found approximation of Pi with 22r7 in the Rhind papyrus. approximatively 16e century BC.

a geometric application for PrQ
https://www.youtube.com/watch?v=sG_6nlMZ8f4

(thanks to J for is x:o.1)
Regards,
Yves
Yves
 
Posts: 39
Joined: Mon Nov 30, 2015 11:33 am


Return to Language

Who is online

Users browsing this forum: No registered users and 1 guest