I am writing a program for an assignment in which I need to incorporate these two formulas; but, the problem is, I have no understanding of the formatting of these formulas and I am just at a loss with what I could find online.
Maybe the question I should be asking is, "What kind of formatting is being used for those formulas and what does each part mean?"
I apologize for lack of clarity and for my confusion -- I've been dealing with trying to figure this out for weeks, on and off, and use Stack Exchange as a last resort.
Below is a screenshot attachment.
Edit: And I did see this other post, but it confuses me. I haven't made it that far in math.

@5xum: I graduated high school last year; but, unfortunately, we only touched up on it very briefly at the end of pre-calculus. We haven't used it in math so far at my university, either.
– John Doe Oct 16 '17 at 08:03