Hi Alex, I think that timespacex may be the verb you are looking for to evaluate your program
timespacex '( 10 %&^.~ ]) ? 1000 $ 900' 0.0011087 18240 timespacex '(10&^inv) ? 1000 $ 900' 0.000245056 26304 timespacex 6!:2 , 7!:2@] time foreign conjunctions - http://www.jsoftware.com/help/dictionary/dx006.htm space foreign conjunctions - http://www.jsoftware.com/help/dictionary/dx007.htm Cheers, bob On Jun 10, 2014, at 3:42 AM, Alex Giannakopoulos <[email protected]> wrote: > Which of these two is the more efficient (if there's any difference) and is > there any way way mere mortals can tell? > > log10 =: 10 %&^.~ ] > > logb10 =: 10&^inv > > Further, if I only wanted to find the order of a given +ve integer > > would it be better to do <. @ log10 (or <. @ logb10) > or something like: > > <:@#@(10&#. inv) > > > Thanks > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
