#!/usr/bin/python wordlength = 16 n = 101038 res = 50 radius = 1.0 q = [1,1,1] denom = round(res/radius) cmd = "IDLIST=./output/idlist_{len} ./complex_anosov summary {n} {q1} {q2} {q3} {rnum}/{rden} {inum}/{iden}" for i in range(-res,res+1): for j in range(0,res+1): if i == 0 and j == 0: continue print(cmd.format( len=wordlength, n=n, q1=q[0], q2=q[1], q3=q[2], rnum=i, inum=j, rden=denom, iden=denom))