(adsbygoogle = window.adsbygoogle || []).push({}); [ANSWERED] Mathematica -> making multiple variables in one go?

Ok so lets say i know how many variables i want:

numberofvariables = 5;

and then i want to create 5 different variables, say X1, X2, X3, X4, X5 based on some formula, say:

Xi = 5+i^2

but i want this creation of variables to be done automatically, without me having to explicity type out and declare X1, X2, X3,...separately...

is this possible?

I really need to know, because say i want numberofvariables = 200, it would be a pain to have to separately declare X1 through X200...

thank you so much.

(Note: this is a radically simplified version of what i am doing...there is not need to substitute a different method to solve the above problem, i just need dynamic variable declaration?)

**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 -> making multiple variables in one go?

Loading...

Similar Threads - Mathematica making multiple | Date |
---|---|

Mathematica - How to make 3D plots flat | Jun 4, 2014 |

Mathematica help needed (making an animation) | Jul 22, 2013 |

Mathematica : Draw a simple line, make into image | Jun 19, 2013 |

Mathematica: Make a 3D List from two 1D lists and a tables | Mar 9, 2013 |

How to make a simplified general code for repetitive formulations in Mathematica | Jun 10, 2011 |

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