My Math Forum  

Go Back   My Math Forum > Math Forums > Math Software

Math Software Math Software - Mathematica, Matlab, Calculators, Graphing Software

LinkBack Thread Tools Display Modes
September 10th, 2011, 09:10 PM   #1
Joined: Mar 2011

Posts: 23
Thanks: 0

Mathematica Table item number

I need to define some "Tables" in Mathematica, in which some elements contains their own item number, like the following example below (the letters are arbitrary numbers) :

A := {a, b, 3 c, d}
B := {1, b, c, 4}
C := {a, b, c, 4, d, 6}
D := {a, 2, c, d, 5, g}

How can I do this ? I'm looking for something like M := {a, b, c, ItemNumber, d, e, ...}. I can't put the number myself by hand, since the Tables are generated by another Mathematica code.

To be more precise (sorry for my bad English) :

What I'm looking for is a way to make Mathematica tell what is the position of a given element in a table. For some elements, I want the element-position in the table to be printed, in the table itself.

Say we have this Table :

A := {123, 215, 456, 786}

I need to change it to something ike this :

A := {123, 2, 456, 4}

The second and fourth elements were changed by their position-number in their table.
Cham is offline  

  My Math Forum > Math Forums > Math Software

item, mathematica, number, table

Search tags for this page
Click on a term to search for related topics.
Thread Tools
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Length of Bent Item Back[Slash] Algebra 9 November 27th, 2013 08:15 PM
find an item of series mathLover Real Analysis 1 May 21st, 2013 10:14 AM
Ratio of pulls where an item will be held... MensInvictaManet Advanced Statistics 0 October 27th, 2011 07:55 AM
Ratio of pulls where an item will be held... MensInvictaManet Applied Math 1 October 26th, 2011 11:28 PM
Mathematica : how to constrain a number between 0 and 1 ? Cham Math Software 3 August 27th, 2011 06:30 PM

Copyright © 2015 My Math Forum. All rights reserved.