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

I'm trying to assign a string in combination with an integer to a variable v. The string-part is fix, the integers comes from another variable n. For Example:

The output of "Print(....);" (that is "Sym_10") should be assigned to another variable. Does anyone know how to do that? There doesn't seem to be a functionality analogue to the "Print()" command when it comes to assigning values to variables. Or can I use "Print()" in some way to solve my problem?Code (Text):n:=10;

Print("Sym_",n);

Thanks in advance.

Kind regards,

arokum

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

# Variables in GAP

Loading...

Similar Threads - Variables | Date |
---|---|

Mathematica Chi square minimisation wrt variables in an integral? | Nov 15, 2017 |

Mathematica Definition function with variable in name | Oct 23, 2017 |

Plot function of 3 space variables plus time | Jul 26, 2017 |

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