0 Members and 2 Guests are viewing this topic.
:augment({0},augment(L1,{0->L1:For(A,1,N):If sum(L1,1,A)=sum(L1,A+1,N+2:Disp A:End
sum(Ans)/2=cumSum(AnsIf not(sum(Ans-1
sum(L1->S0For(A,1,NAns+L1(AIf 2Ans=SDisp AEnd
sum(L1->S0For(A,1,NAns+L1(AIf 2Ans=SA+N->AEndA-N-1Ans-not(Ans
Edit: Deep Thought: that returns a list of 1's and 0's...
Since TI-BASIC lists are 1-indexed, though, wouldn't it make more sense to have it return 0 if nothing is found? (For my program, just cut off the last line to have it return 0 if nothing's found)
sum(Ans)/2=cumSum(AnsAnscumSum(binomcdf(dim(Ans)-1,0If not(sum(Ans0
sum(Ans)/2=cumSum(Ansmax(AnscumSum(binomcdf(dim(Ans)-1,0