1
vote
1answer
27 views

How to set the values into some variables from different lists [on hold]

I have a list of Values and a list of variables. I want to set the Values into Variables. Assume the following code: ...
2
votes
5answers
181 views

Treat list as cyclic

I am considering the following case. Say that T={p1,p2,p3} represents a triangle. In addition, I want to parameterize the edges of the triangle ...
3
votes
3answers
145 views

Renaming a list with name obtained interactively

I have a list say: m = {1, 2, 3} The list is inside a package, and is the result of a calculation. I want to give the user the option to rename it, for example ...
2
votes
1answer
106 views

Strange behaviour of variables in Table

I'm trying to work with some vectors and have run into a strange problem. An obvious way to define a difference of two vectors would be dif[x_,y_] := x-y I ...
0
votes
2answers
136 views

How can I assign some part of data from one list to another list?

I don't know this is correct question or not,but I have a doubt. I have two Lists names are list1 and ...
1
vote
3answers
759 views

How to create functions of arbitrary number of variables? [duplicate]

In the following code what would be the simplest way to generalize it to say some $N_f$ number of $z$ instead of just $z_1$ and $z_2$? ...
12
votes
7answers
681 views

How to Set parts of indexed lists?

I would like to assign a list to an indexed variable and then change it using Part and Set like this: ...
6
votes
2answers
251 views

How to choose variables from a list for a function and then use the solution in a subsequent function?

I am trying to calculate heating degree days and cooling degree days and output that information to a table. I am using mathematica's curated data to do this. In text this is what I would like to ...