Skip to main content

Timeline for Creating a conditional table

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
Aug 17, 2014 at 16:13 comment added C. E. @Artes Nice, +1
Aug 17, 2014 at 16:12 comment added C. E. @FancierofMathematica With this solution you can do that, and also with the new solution by Artes.
Aug 17, 2014 at 16:11 history rollback C. E.
Rollback to Revision 1
Aug 17, 2014 at 16:10 history edited C. E. CC BY-SA 3.0
edited body
Aug 17, 2014 at 16:02 comment added Artes @Pickett Ok I provided another solution.
Aug 17, 2014 at 15:51 comment added Fancier of Mathematica Let's say we do so: Table[f[i],{i,1,10}], with some given function f. It might be Sin[i], Cos[i] and etc. I want to do so: if f[i]=0, then f[i+1],..,f[10]=0. Not checking whether f[i+1],..,f[10]=0. If, for example, f[1]>0, f[2]>0, but f[3]=0, then the result should be {f[1],f[2],0,0,0,0,0,0,0,0}.
Aug 17, 2014 at 15:15 comment added C. E. @Artes The way I see it it's the only solution.
Aug 17, 2014 at 12:01 comment added ubpdqn this seems to most accurately implement what the text describes +1
Aug 17, 2014 at 11:58 history answered C. E. CC BY-SA 3.0