This question has nothing to do with LabVIEW, you can solve it in any computer language (or manually) you want. For basic math formulas, look in basic math texts.
BTW, your reference link is broken.
To err is human, but to really foul it up requires a computer. The optimist believes we are in the best of all possible worlds - the pessimist fears this is true. Profanity is the one language all programmers know best. An expert is someone who has made all the possible mistakes.
To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):