LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Factoring of Integrers

I am trying to create a subvi to factor an interger and save all of its factors in an array. Im not too familiar with the math node but I tried using it to no avail, I can also solve this using pure labview as well but i can't figure out where to start on that end. Attached is a image of my math node code which doesnt run due to an error on line 2 apparently. Any suggestions??

0 Kudos
Message 1 of 5
(2,844 Views)

The Prime Factor.vi should give you what you need:

 

fact.png

0 Kudos
Message 2 of 5
(2,839 Views)

The Prime Factor vi will give all of the prime factors, I assume you want all of the divisors of the number, then use this link.

 

mcduff

0 Kudos
Message 3 of 5
(2,834 Views)

If you search for it.... I know I tossed up an example a few years ago.  

 

Edit   Thanks McDuff


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 5
(2,815 Views)

@JÞB wrote:

If you search for it.... I know I tossed up an example a few years ago.  


That link in my reply is your example!!!

 

mcduff

Message 5 of 5
(2,812 Views)