Need some help figuring out my code

But sparkies confuse things, and use j for the square root of -1 :open_mouth: