Construction of zero-finding methods by Weierstrass functions