I have a program with Mathematica and I would like to run it in parallel.(adsbygoogle = window.adsbygoogle || []).push({});

The essential of the code is actually run a lot of cases, changing some parameters.

In other words, it means that each case is totally independent of the other.

But I'm not quite sure about how to do it.

To exemplify this situation, let's see the sample code bellow.

The problem is that the values are not passing to f.Code (Text):fcalc[i_, j_] := NIntegrate[i Cos[j x], {x, 0, 1}]

ParallelDo[

f[i, j] = fcalc[i, j]

, {i, 1, 10}

, {j, 1, 10}]

Any suggestions???

Thank you

**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!

# Simple Parallelization with Mathematica

Loading...

Similar Threads - Simple Parallelization Mathematica | Date |
---|---|

LaTeX \vec command | Jan 31, 2018 |

Simple MATLAB loop | Oct 30, 2015 |

Coding up a simple geometric algebra in MATLAB | Oct 12, 2015 |

WolframAlpha miscalculates a simple arithmetic expression | May 25, 2015 |

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