10-12-2021 04:45 PM
In the "picture of the code" that you posted, there is no "And Array Elements" function. You need to learn a little more LabVIEW to learn to recognize the commonly-used LabVIEW functions. It is also useful to know a little Mathematics and Logic in order to have a better "intuitive" idea of what the function symbols mean. Hint -- one of the functions has a Capital Greek "P".
Bob Schor
10-12-2021 05:46 PM - edited 10-12-2021 05:46 PM
@yessyjami wrote:
Why in the index of the first for loop was an "and array elements" added?
"And array elements" is a boolean (or bitwise) function and nowhere to be seen.
Try to find the above four array functions and look at their help pages.
Do you recognize which one was used? Do you understand why?
As a next step, try to graduate to a bit more interesting solutions such as this one which can e.g. calculate all 35660 digits of 10000! 😄
10-12-2021 06:54 PM
Does not contribute to the actual topic but couldn't hold myself from expressing how amazed I am looking at the implementation.
@altenbach
Thank you for enlightening all of us with such a small and powerful factorial calculator implementation. It took some time to understand what is going, once it clicked, everything made sense.
A very clever way of considering digits and implementing primitive operations such as multiply and carry for such large numbers.
10-13-2021 10:05 AM
I understand mathematics and I understand Labview.
And now everything is clearer.
thanks