gistlib
main.mn = 0; y = 0; term = 1; while abs(term) > 1e-6 term = (-1)^n / (1 + 3^n); y = y + term; n = n + 1; end y 119 chars12 lines
n = 0; y = 0; term = 1; while abs(term) > 1e-6 term = (-1)^n / (1 + 3^n); y = y + term; n = n + 1; end y
gistlibby LogSnag