Electromagnet8 wrote:
I've been creating some cross-compatible programs so that my friends can use them at school as well.
With this at the beginning of the program:
Code: Xmin+|E2DeltaX<Xmax->C
Is there a way to optimize this?
Code: Text(7+C6,1,"BASED ON THE P-VALUE OF",A
Text(13+C12,1,"THERE IS",Str8,"SUFFICIENT
Text(19+C18,1,"EVIDENCE AT ",B," alpha
Text(25+C24,1,"LEVEL TO REJECT THE NULL
Text(31+C30,1,"HYPOTHESIS. IF THE NULL
Text(37+C36,1,"WERE TRUE, THE PROBABILITY
Text(43+C42,1,"OF GETTING A (TEST
Text(49+C48,1,"STATISTIC) OF ____ OR MORE
Text(55+C54,1,"EXTREME IS ",A,".
End
The best I can come up with is based on this logic: 7+C6 = 1+6(C+1), 13+C12 = 1+2*6(C+1), 19+18C = 1+3*6(C+1), and so on. One way we could optimize this therefore would be: Code: 6(C+1
Text(1+Ans,1,"BASED ON THE P-VALUE OF",A
Text(1+2Ans,1,"THERE IS",Str8,"SUFFICIENT
Text(1+3Ans,1,"EVIDENCE AT ",B," alpha
Text(1+4Ans,1,"LEVEL TO REJECT THE NULL
Text(1+5Ans,1,"HYPOTHESIS. IF THE NULL
Text(1+6Ans,1,"WERE TRUE, THE PROBABILITY
Text(1+7Ans,1,"OF GETTING A (TEST
Text(1+8Ans,1,"STATISTIC) OF ____ OR MORE
Text(1+9Ans,1,"EXTREME IS ",A,".
End
This approach saves 2 bytes per line.