Dim $txt = @ScriptDir & '\等价期数.txt'
Dim $nnn, $jj, $zout, $out[48 * 8 / 3][3], $x = 0, $xx = 0, $b = 0, $bb = 11 - 4 + 1
For $i = 3 To 49
For $j = 4 To 11
$nn = Log(1 / 2 ^ $j) / Log(1 - 1 / $i)
$nnn = StringFormat('%03d', Round($nn))
$jj = StringFormat('%02s', $j)
$ii = StringFormat('%03s', $i)
$out[$b * $bb + $x][$xx] = $ii & '分之一概率-<' & $nnn & '>-期等价于单双-' & $jj & '-期' & @TAB
$x += 1
If $x > $bb - 1 Then $x = 0
Next
$xx += 1
If $xx > 2 Then
$xx = 0
$b += 1
EndIf
Next
For $i = 0 To UBound($out) - 1
$zout &= $out[$i][0] & $out[$i][1] & $out[$i][2] & @CRLF
If IsInt(($i + 1) / 8) Then $zout &= @CRLF
Next
FileDelete($txt)
FileWrite($txt, $zout)
ShellExecute($txt)
|