WalterContrata
Technical User
What is a good method of calculating derivatives in Access (or of calculating anything that depends on multiple rows of a table.)?
I have a table of phase ([φ]) versus frequency (f), and I need to calculate d[φ]/df, the group delay.
Here is a sample:
ID f [φ]
11 3.045 -1.35
12 3.344 -1.52
13 3.644 -1.67
14 3.943 -1.82
15 4.243 -1.98
16 4.542 -2.13
17 4.842 -2.32
18 5.141 -2.5
19 5.441 -2.66
I need to calculate
([φ]ID+1 - [φ]ID-1)/(fID+1 - fID-1)
Can it be done with a query? Is VBA the best, or only, way?
Best Regards,
I have a table of phase ([φ]) versus frequency (f), and I need to calculate d[φ]/df, the group delay.
Here is a sample:
ID f [φ]
11 3.045 -1.35
12 3.344 -1.52
13 3.644 -1.67
14 3.943 -1.82
15 4.243 -1.98
16 4.542 -2.13
17 4.842 -2.32
18 5.141 -2.5
19 5.441 -2.66
I need to calculate
([φ]ID+1 - [φ]ID-1)/(fID+1 - fID-1)
Can it be done with a query? Is VBA the best, or only, way?
Best Regards,