Timeline for How does Leafcount work? [closed]
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 24, 2021 at 5:23 | history | closed |
Michael E2 bbgodfrey MarcoB Rohit Namjoshi Dunlop |
Not suitable for this site | |
Nov 24, 2021 at 1:16 | vote | accept | Peter Burbery | ||
Nov 23, 2021 at 20:02 | answer | added | Ian Ford | timeline score: 3 | |
Nov 23, 2021 at 4:51 | review | Close votes | |||
Nov 24, 2021 at 5:23 | |||||
Nov 22, 2021 at 22:19 | comment | added | Peter Burbery | Thank you it worked! | |
Nov 22, 2021 at 22:17 | comment | added | Domen |
Take a look at ExpressionTree[ThreeFive ...] and ExpressionTree[Floor[n/15]] . You can see that your definition of function gets evaluated (!) and returns "nothing" (or something like this, I am not sure), therefore only one leaf. Try with Hold : LeafCount[Hold[ThreeFive[...] := ...]] , which will give you 17 leafs (one of them being Hold itself).
|
|
Nov 22, 2021 at 21:43 | history | asked | Peter Burbery | CC BY-SA 4.0 |