LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to develop a program to perform factorials?

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

0 Kudos
Message 11 of 14
(619 Views)

@yessyjami wrote:

Why in the index of the first for loop was an "and array elements" added?


  1. You need to understand the math
  2. You need to understand LabVIEW

 

"And array elements" is a boolean (or bitwise) function and nowhere to be seen.

 

 

altenbach_1-1634078551154.png

 

 

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! 😄

 

 

Message 12 of 14
(612 Views)

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.

 

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 13 of 14
(602 Views)

I understand mathematics and I understand Labview.
And now everything is clearer.
thanks

0 Kudos
Message 14 of 14
(574 Views)