summaryrefslogtreecommitdiff
path: root/problem45.ijs
blob: 198621972426d8dbb6bf0ad1a564606c96c4d098 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
T =: {{ 0.5*y*y+1 }}
P =: {{ 0.5*y*_1+3*y }}
H =: {{ y*_1+2*y }}

limit =: 1e5 NB. A guess that works

'Ts Ps Hs' =: (T;P;H)i.limit

isP =: e.&Ps
isH =: e.&Hs
isPH =: isP*.isH

problem45 =: Ts{~3}.I.isPH Ts