Overview
This example code will use the principles of Pascal's triangle to create an array of numbers. The user specifies the number of elements in the array and the values are generated to match the appropriate row in Pascal's triangle.
Description
Pascal's triangle is an important mathematical concept that has applications in numerous fields. It has many interesting properties. Please refer to the following external website for more information about this concept: http://www.mathsisfun.com/pascals-triangle.html
Steps to Implement or Execute Code
- Enter the number of rows that you would like to generate
- Run the code
- Notice that the array output follows the pattern of Pascal's triangle.
Requirements
Software
LabVIEW 2014
Hardware
None
Additional Images or Video