Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
(%i1) display2d: false$ /* disable rendering exponents as superscripts */
|
||||
(%i2) factor(2016);
|
||||
(%o2) 2^5*3^2*7
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
prime_dec(n) := flatten(create_list(makelist(first(a), second(a)), a, ifactors(n)))$
|
||||
|
||||
/* or, slighlty more "functional" */
|
||||
prime_dec(n) := flatten(map(lambda([a], apply(makelist, a)), ifactors(n)))$
|
||||
|
||||
prime_dec(2^4*3^5*5*7^2);
|
||||
/* [2, 2, 2, 2, 3, 3, 3, 3, 3, 5, 7, 7] */
|
||||
Loading…
Add table
Add a link
Reference in a new issue