I'm not sure if you're familiar with EES, but just in case I am asking here because I really have no idea what to do, as I've tried everything I could.(adsbygoogle = window.adsbygoogle || []).push({});

Basically, I want to calculate a partial derivative numerically (speed of sound) from a table of values.

I have a program that produces a table of pressures and specif mass and I want to take

[tex] \left( \dfrac{\partial p}{\partial \rho} \right)_s \approx \left(\dfrac{p_{i+1} - p_i}{\rho_{i+1} - \rho_i} \right) [/tex]

I've tried creating procedures, functions and stuff like that but I couldn't do anything. Here's basically what I have done most times:

Basically I have a parametric table called "rev" with columns "p" and "rho" in which I have 1500 values for each.Code (Text):PROCEDURE Vsound( : vel )

i:=0

REPEAT

i=i+1

a := tablevalue('rev';i;'p')

b := tablevalue('rev';i+1;'p')

c = tablevalue('rev';i;'rho')

d = tablevalue('rev';i+1;'rho')

vel := (b-a)/(d-c)

UNTIL (i=1499)

END

Then later in the code, after writing stuff to calculate both p and rho, I call that procedure:

CALL Vsound(: vel)

Though it says that there is no value set for rho. I believe that's because rho is calculated within the program (p is pre-set), though I have no idea how to solve this problem.

Ideas?

Thanks in advance

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Help with EES (take derivative from table)

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads - Help derivative table | Date |
---|---|

Help identify this label (electrical/nuclear engineering equipment) | Feb 17, 2018 |

Help! 1064 nm emitted from different sources of devices | Jan 3, 2018 |

I need help on my rocket engine thrust equation | Nov 25, 2017 |

Turbojet -- I need help with an explanation about how a turbojet works | Nov 14, 2017 |

Need help deriving drag equation... | Aug 12, 2015 |

**Physics Forums - The Fusion of Science and Community**