Skip to main content
8 events
when toggle format what by license comment
Jul 21, 2020 at 4:47 vote accept NeDark
Jul 21, 2020 at 3:07 review First posts
Jul 21, 2020 at 5:50
Jul 19, 2020 at 12:42 answer added Michael E2 timeline score: 1
Jul 19, 2020 at 5:57 comment added LouisB From the error message, it certainly looks like Nfunc already has a definition before its SetDelayed ( := ) definition. Notice that the variable name is black instead of blue. With a fresh kernel all undefined variable names are blue. Two thoughts: First, we usually don't begin a function name with a capital letter, but that is not the problem here. Second, before defining a function we often execute a Clear[ Nfunc ] or ClearAll[ Nfunc ] to eliminate conflicts like the one shown in the error message.
Jul 19, 2020 at 5:16 comment added NeDark @LouisB Now I got those errors i.imgur.com/HFAWZ1I.png
Jul 19, 2020 at 5:16 history edited NeDark CC BY-SA 4.0
added 79 characters in body
Jul 19, 2020 at 4:42 comment added LouisB Unchanged, your code executes in less than 1 second for me on MMA 12.1.0. Maybe you need to start with a fresh kernel, or restart MMA.
Jul 19, 2020 at 4:33 history asked NeDark CC BY-SA 4.0