Got a D in PreCalc twice. Retake again? UC chances?

<p>So, as the title suggests I got a D in Precalc twice at my local community college (part of a highschool alternative taking half college and half highschool classes, for highschool credit)
I was wondering if I should retake the class again because I feel like with the quality of teachers Ive had here I would most likely get a C, which wouldn't help my GPA very significantly. This class isn't required for a-g, and my planned major, Cultural Anthropology, doesn't require it either.
How significantly does this effect my chances for the UC's I applied to? (Santa Cruz and Santa Barbara)</p>

<p>TL;DR Should I take the class for a 3rd time for C? or is it better to get good grades in classes I know I can get As or at least Bs in? How much will it effect UCSC and UCSB admissions chances?</p>

<p>Thanks in advance for any help</p>