[CAS] listLCM Help
|
09-23-2016, 01:53 PM
(This post was last modified: 09-23-2016 07:00 PM by compsystems.)
Post: #4
|
|||
|
|||
RE: [CAS] listLCM Help
(09-22-2016 10:45 PM)zahi48g Wrote: Try MAKELIST(K,K,1,99,1), the output will be a list, not a vector then lcm will work . OK, I have adhered to the code TYPE(lst)==4 for support vectors, please check the code updated above Now appears the following: Using the double dot operator (..) on SEQ CMD, works to 97 elements, but the maximum number of recursion is 100, therefore, why not operate between 98..100? lst3:=seq(k,k = (1 .. 101), 1) listLCM(lst3) -> error // OK lst4:=seq(k,k = (1 .. 100), 1) listLCM(lst4) -> error WHY? lst4a:=seq(k,k = (1 .. 99), 1) listLCM(lst4a) -> error WHY? lst4b:=seq(k,k = (1 .. 98), 1) listLCM(lst4b) -> error WHY? lst5:=seq(k,k = (1 .. 97), 1) -> 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97 listLCM(lst5) -> 69720375229712477164533808935312303556800 |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
[CAS] listLCM Help - compsystems - 09-22-2016, 09:49 PM
RE: [CAS] listLCM Help - zahi48g - 09-22-2016, 10:45 PM
RE: [CAS] listLCM Help - compsystems - 09-23-2016 01:53 PM
RE: [CAS] listLCM Help - toshk - 09-22-2016, 10:51 PM
RE: [CAS] listLCM Help - zahi48g - 09-23-2016, 04:58 PM
|
User(s) browsing this thread: 1 Guest(s)