Help / Release / J 6.02 / f/\ Improved

From J Wiki
Jump to navigation Jump to search


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



f/\

Improved

initial writing: 2007-12-10
last updated: 2007-12-19


Several monads f/\ on extended precision arguments have been made more efficient:   +/\   */\   -/\   <./\   >./\

The following benchmarks demonstrate the improvements.

x=: 1e4 ?@$ 123456x
q=: %/ 0 1x + 2 1e4 ?@$ 123456

ts=: 6!:2 , 7!:2@]  NB. time and space
ts 'Expression'
Expression       J 6.02    J 6.01    Ratio
+ /\ x  0.004858 7.47648e5 43.976548 1.66682e6  9052.53  2.23
>./\ x 0.001026 6.66880e4 30.232657 1.02662e6 29456.17 15.39
- /\ x  0.004828 7.47648e5 43.737591 1.66682e6  9059.21  2.23
>./\ q 0.011577 2.63891e6 63.500041 1.23987e6  5485.08  0.47



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