Timeline for Error with NSum : it returns NSum::nsnum: Summand (or its derivative) f[n] is not numerical at point n=17
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 23, 2019 at 22:07 | vote | accept | StarBucK | ||
Jun 23, 2019 at 21:25 | answer | added | Michael E2 | timeline score: 4 | |
Jun 23, 2019 at 20:14 | history | edited | StarBucK | CC BY-SA 4.0 |
added 286 characters in body
|
Jun 23, 2019 at 20:05 | comment | added | StarBucK | @MariuszIwaniuk I use NSum for performance purposes. It is said that if I want to do numeric summation this function must be used for greater execution speed. And for my more specific problem I will have a lot of sum to evaluate, so I need to have an optimised version. Also I would like to understand what is the problem. Thanks ! | |
Jun 23, 2019 at 19:57 | comment | added | Mariusz Iwaniuk |
Better to use is: N[Sum[f[n], {n, 1, 100}]] or Total@Table[f[n], {n, 1, 100}] .
|
|
Jun 23, 2019 at 19:49 | history | edited | StarBucK | CC BY-SA 4.0 |
added 7 characters in body
|
Jun 23, 2019 at 19:49 | comment | added | StarBucK | @MichaelE2 yes sorry I forgot to copy the line I defined t. Put t=2 and you will have the same problem | |
Jun 23, 2019 at 19:48 | comment | added | Michael E2 | There’s a t in the definition of f that has no numerical value given above. | |
Jun 23, 2019 at 19:11 | history | edited | StarBucK | CC BY-SA 4.0 |
added 58 characters in body
|
Jun 23, 2019 at 19:06 | history | asked | StarBucK | CC BY-SA 4.0 |