Mathematica Asked by Madhurima Chakraborty on May 4, 2021
I want to write a sum over "i" whose limits are like "i" starting 1 to 10 but "i" not equal to 2. How to write this?
Sum[m+17, {m, Range[10] /. 2 -> Nothing}]
Answered by PaulCommentary on May 4, 2021
f /@ Cases[Except[2]]@Range[10] // Total
Sum[f[i]*Boole[i != 2], {i,10}]
Answered by cvgmt on May 4, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP