MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

List manipulation?

Hi all,

I got a problem with List manipulation. I have the following list item:

  a = -Subscript[50, 5]

and I would like to change the value of 50 to 360-50 and also change the 
sign to +. First I tried to change the sign and then the value and I got 
an outcome I didn't understand. Doing the other way round I get the 
outcome I expected. Does anybody know what the difference is?

Here is the Example file:

a = -Subscript[50, 5]
a[[2, 1]] = 360 - a[[2, 1]]
a[[1]] = -1*a[[1]]

b = -Subscript[50, 5]
b[[1]] = -1*b[[1]]
b[[1]] = 360 - b[[1]]

Andreas Talmon l'Armée
Fachgebiet Strukturmechanik
Hochschulstraße 1
06151-16 6467

  • Prev by Date: Deleting Palettes
  • Next by Date: Re: Sum pattern
  • Previous by thread: Deleting Palettes
  • Next by thread: Re: List manipulation?