#!/usr/local/bin/cz -- use b num offset(num d, num L, num x) return hypot(x+d/2, L) - hypot(x-d/2, L) Main: if args != 2 usage("d L") num d = atof(arg[0]) num L = atof(arg[1]) num x for x=0; x < 100; x+= 0.1 printf("%f\t%f\n", x, offset(d, L, x)) return 0