UC Davis: I got a D in math 17a, what can I do?

Well, since you say that you can’t repeat 17a, since it is currently full, you are already borderline behind. Sure, you might get into 17a if others drop, but why not strengthen your math ability with 16?

No precalc?

(Hint: physics is nearly all math, so it too will be problematic without a strong math background.)