I have a function (T[p_]) that calculates a temperature from a given pressure.
I have a table with a column of pressures and an associated temperature (PTFeO).
I would like to apply my temperature (T[p_]) function to the column of pressures and compare the calculated temperatures to each associated temperature in the table.
If the calculated temperature is greater than its associated temperature, then I would like to omit that row from the table.
Do you guys have any suggestions? I know I will need to do a for-loop, but I'm having trouble beginning.
Temperature function:
T[P_] := -5.104*(P*0.1)^2 + 132.899*(P*0.1) + 1120.661;
PTFeO = Transpose[{p1, t1}]
{{39, 1640}, {39, 1650}, {39, 1660}, {39, 1670}, {39, 1680}, {39, 1690}, {39, 1700}, {39, 1710}, {39, 1720}, {39, 1730}, {39, 1740}, {39, 1750}, {41, 1610}, {41, 1620}, {41, 1630}, {41, 1780}, {41, 1790}, {41, 1800}, {43, 1600}, {43, 1610}, {43, 1830}, {43, 1840}, {43, 1850}, {45, 1590}, {45, 1600}, {45, 1870}, {45, 1880}, {47, 1580}, {47, 1590}, {47, 1910}, {47, 1920}, {49, 1580}, {49, 1940}, {49, 1950}, {51, 1570}, {51, 1580}, {51, 1980}, {53, 1570}, {55, 1570}, {57, 1570}, {59, 1570}, {61, 1570}, {63, 1570}, {65, 1570}, {67, 1570}, {69, 1570}}
Thanks!