Weierstrass degree