Is there a function that returns factors?

From: Bridget Thrasher <bthrasher_at_nyahnyahspammersnyahnyah>
Date: Mon Mar 28 2011 - 15:28:47 MDT

I'm wondering if there is a function that, when given an integer, would
return that number's factors. For example, if you had x = find_factors(56),
x would then be the array (/1,2,4,7,8,14,28,56/). Does such a thing exist?

-Bridget

-- 
Bridget Thrasher, PhD
Independent Contractor, Research Scientist

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Mar 28 15:28:54 2011

This archive was generated by hypermail 2.1.8 : Tue Apr 05 2011 - 09:01:21 MDT