2 x: 37r57
37 57

What if you did not have the magic 2 x: y?

   y=: 58801r102791
   % 1 +. y
102791
   y % 1 +. y
58801

Which continue fraction example are you talking about?



----- Original Message -----
From: Nicholas Spies <[email protected]>
Date: Thursday, September 3, 2009 13:50
Subject: [Jprogramming] extract numerator and denominator
To: Programming forum <[email protected]>

> At the ever-present risk of asking the idiotic, is there a verb 
> to 
> extract the numerator or denominator, or
> both in one step, such as:
> 
>     numden 37r57  --> 37 57
> 
> The continued fraction example in the J help is difficult to 
> interpret.Thanks, Nick
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to