Yes, example one correct.
Though a reroll, generally defined as a second chance in the event of failure is resolved differently, The effect this has on the outcome is as follows. First, you have the odds to succeed on the first roll. If you pass the first roll, the second roll doesn't matter. If you fail, though, you get to try again. So, the odds can be described as, the chance that you succeed, plus the chance that, if you fail, you succeed on the second attempt. Mathematically, this looks like (chance to succeed) + (1-chance to succeed)*(chance to succeed). If you want to use algebra, you can also write this as 2*(chance to succeed) - (chance to succeed)squared.