Hi all(adsbygoogle = window.adsbygoogle || []).push({});

I'm am looking for a smart way to make the following conditional in Mathematica:

,Code (Text):if[i == 3*{1,2,3,4,5,N}, ....]

ï.e. if the variableiis a multiple of 3 up to some integerN. How can I do this smartest in Mathematica?

Best,

Niles.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mathematica: Conditionals

Loading...

Similar Threads - Mathematica Conditionals | Date |
---|---|

Mathematica Mathematica: ill-conditioned linear system | Mar 14, 2016 |

Mathematica NDSolve initial condition | Mar 5, 2015 |

Mathematica Ndsolve periodic boundary conditions | Feb 12, 2015 |

Mathematica NDSolve conditions help | Dec 22, 2013 |

Mathematica : Integrate bug? Generate conditions. | Apr 13, 2013 |

**Physics Forums - The Fusion of Science and Community**