fork download
  1. frcts = ...
  2. @(a,b,c)rats(union([a:c:b],b))
  3.  
  4. frcts(-2,3,1/2)
  5. frcts(1,2,2/3)
  6.  
Success #stdin #stdout 0.49s 121792KB
stdin
Standard input is empty
stdout
frcts =

@(a, b, c) rats (union ([a:c:b], b))

ans =

 Columns 1 through 7:

         -2       -3/2         -1       -1/2          0        1/2          1

 Columns 8 through 11:

        3/2          2        5/2          3

ans =           1        5/3          2