Help with Mathematica Code: Matching Two Lists

  • Thread starter Thread starter umangdighe
  • Start date Start date
  • Tags Tags
    Mathematica
AI Thread Summary
The discussion revolves around writing Mathematica code to match two lists: one for time (t) and another for temperature (T). The user seeks to correspond values from these lists, where each temperature value corresponds to a specific time value. A suggestion is made to combine the lists into a 2D list format, allowing for easy access to corresponding elements. The user is looking for further assistance and clarification on this approach. The conversation emphasizes the need for effective data organization in Mathematica for accurate calculations.
umangdighe
Messages
3
Reaction score
0
Hi guys,

I am writing a code for mathematica...

I have two lists for t(time) and T(temperature) such that t=(t1,t2,t3...tn) and T=(T1,T2,T3,T4,T5...Tn)
I have a formula that needs me to correspond the values in the two lists...which means... T1 is the value recorded at t1...

any suggestions ?


thanks
 
Mathematics news on Phys.org
tn=Tn where n=1,2,3,4......
 
Put them together into a single 2D list, i.e.
Data={t,T}

Then tn will be Data[[ 1,n]] , and Tn will be Data[[2,n]] .

Is this what you're trying to do?
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Back
Top