Skip to content
  • Liam M. Healy's avatar
    Allow reader macro #_ to handle non-scalar units · 1241567c
    Liam M. Healy authored
    By pre-parsing the unit expression to see if it is parseable as a
    single expression, determine whether the units (for a grid) are
    intended to apply separately to each element (non-scalar).  Example: 
         ANTIK-USER> #_#m(1.0d0 4.0d0)_(m s)
         #<Physical quantity mag #m(1.0 4.0), units #(METER SECOND)>
         ANTIK-USER> #_#m(1.0d0 4.0d0)_(/ m s)
         #_#m(1.0 4.0)_m/s
    1241567c