Help / Release / J 6.01 / "."0@": Improved

From J Wiki
Jump to navigation Jump to search


>> << Pri JfC LJ Phr Dic Voc !: Rel NuVoc wd Help Release



"."0@": Improved

initial writing: 2006-02-23
last updated: 2006-02-23


The phrase "."0@": y (also @: or & or &: instead of @), which produces the decimal digits of a non-negative integer y , is now supported by special code. The following table compares the time and space for various expressions to produce the decimal digits on y=:2^10000x .

  Expression    Time    Space         Ratio
"."0@": y  0.0000741  17728  1.00  1.00
"."0 ": y  0.0046516  1295040  62.80  73.05
10&#.^:_1 y  0.1326987 22656704  1791.65  1278.02
('0123456789' i. ":) y 0.0004732  21376  6.38  1.21



>> << Pri JfC LJ Phr Dic Voc !: Rel NuVoc wd Help Release