Timeline for Sum index in function collides with input variable
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 21, 2019 at 19:47 | comment | added | meldefon | Thank you both! This solved my problem | |
Nov 21, 2019 at 1:05 | answer | added | NonDairyNeutrino | timeline score: 2 | |
Nov 20, 2019 at 23:21 | comment | added | WReach |
Discussion about the need to localize the variables in Table and Sum can be found in Do Table iteration variables need to be localized using Module?.
|
|
Nov 20, 2019 at 22:59 | comment | added | Rohit Namjoshi |
You could scope s using Module . Func[f_, xx_] := Module[{s}, Sum[D[f, xx[[s]]], {s, 1, 2}]]
|
|
Nov 20, 2019 at 22:35 | review | First posts | |||
Nov 21, 2019 at 4:41 | |||||
Nov 20, 2019 at 22:30 | history | asked | meldefon | CC BY-SA 4.0 |