TITLE: I want to study mathematics ahead of high school, but I found that I'm rusty on the elementary stuff
QUESTION [9 upvotes]: Next week, I'm beginning the 2nd semester of 9th grade in the country's leading Comp Sci High School. (the profile is actually Math-Comp Sci, but this HS focuses more on Comp Sci, whereas other ones focus more on math). What I did in grades 5th-8th (and that I should know almost perfectly) is from natural numbers (5th, arithmetic) all the way to linear equalities and inequalities, 2nd degree equations (8th grade) with a dash of plane and some 3D geometry. Judging by the results of my HS admission test, I should know these things pretty well, but it seems to me as if I don't have a good grasp (I'm getting rusty, or in fact never been that good). Now, in the 9th grade, it happened that I have the worst math teacher in the entire high school (other teachers complain about him, from the ones that teach Comp Sci to the geography ones, all the students complain about him). He just comes in class, writes the basic definitions of something, shows us no practical examples (well, not practical, but how to solve the exercises involving them) and he gives obscene amounts of homework (I checked with other HS math teachers).
So, basically, what I need is this: something that I can study on my own (so, a book with examples, lots of exercises in the entire difficulty spectrum and solutions would be great) to get a really firm grip on basic geometry (similar triangles, Pythagorean theorem, the really basic stuff), the algebra from 5th-8th (including the arithmetic parts, like properties of $a \vdots b$ then $a \vdots nb$) and then a good resource for the highlights of high school (so I can get a good grip of what I currently should be studying, but can't because of the poor teacher), plus the stuff from higher years (logarithms, complex numbers etc.). Why I'm asking this question? Because I decided I want to learn Real Analysis, and found that while I understood all the concepts, I couldn't handle the exercises and I had difficulties with the rather basic stuff (linear eqs. and so on).
Sorry if the location isn't quite right, but this seemed like the best place to ask this question.
Any good books, or resources, or stuff I should look into, or a list of things I should have a really good grip on before moving on to more advanced stuff. Any suggestion is appreciated.

REPLY [2 votes]: The Art of Problem Solving has a bunch of books starting at Prealgebra, going all the way through Calculus.  And, included in these are topics a typical high school student might not see, like counting and probability, and number theory, both of which are useful to people studying computer science.  And, there is a geometry book.  The books are very reasonably priced and you can buy full solutions manuals along with them.  The solutions manuals are very inexpensive if you buy them with the corresponding book, i.e., you get a discount for buying them together.  And, beside having the main topics, these books try to teach problem solving skills.
http://www.artofproblemsolving.com/index.php?mode=books