Skip to content

Commit

Permalink
Misc. bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mlochbaum committed Mar 14, 2012
1 parent 06f4991 commit ba4036a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
*.log
*.aux
4 changes: 2 additions & 2 deletions funcs.ijs
Expand Up @@ -44,10 +44,10 @@ corr =: %:@corrsq NB. correlation coefficient R
slopeRU =: [:%: (2-~#"1@]) %~ <:@%@corrsq
intRU =: slopeRU*mean&.:*:@[
int_slope =: (1,.[)%.~]
int_slopeWithU =: int_slope ([ ,. {.@[*]) intRU,slopeRU
int_slopeWithU =: int_slope ([ ,. {:@[*]) intRU,slopeRU

NB. All format commands output a double-boxed string. Careful!
fmtExp =: ([,'\times10^{',],'}'"_)&":&.>&.>
fmtExp =: ([,'\times10^{',],'}'"_)&(('-',}.)^:('_'={.))&":&.>&.>
fmtDig =: <@:(":@[ 8!:0 ]) "0
genFmtPrec =: (1 :0) ("0) NB. precision (expcutoff genFmtPrec) number
:
Expand Down
10 changes: 6 additions & 4 deletions jdoc.ijs
@@ -1,16 +1,18 @@
NB. FUNCS gives the available functions to be used on text.
NB. each should take and return a string.
execute =: ":@".
assign =: ''[".
cocurrent 'pjdoc'
J =: ":@".
A =: ''[".
J =: execute_base_
A =: assign_base_
L =: latex_base_
P =: pd_z_
P =: pd_base_
cocurrent 'base'

NB. execute \?(expr) using the correct function for ? .
ex_jdoc =: 3 :0
'func data' =. (({.~;}.~) i.&'(') y
('_pjdoc_',~}.func)~ process_jdoc }.}:data
, ('_pjdoc_',~}.func)~ process_jdoc }.}:data
)

NB. take the text of a document and process it.
Expand Down
2 changes: 1 addition & 1 deletion plot.ijs
Expand Up @@ -2,7 +2,7 @@ load 'plot'

PLOT_CONFIG =: 'visible 0;'

insertplot =: 4 :0 NB. name insertplot plotdata
includeplot =: 4 :0 NB. name insertplot plotdata
pd PLOT_CONFIG
pd y
pd 'pdf ', PATH,x,'.pdf' ,' 280 200'
Expand Down

0 comments on commit ba4036a

Please sign in to comment.