PDA

View Full Version : lookup() function question



QUICKSILVER2002
May 21st, 2005, 10:12 AM
I've got a non linear WB controller (old school techedge).

I came up with a poly equation for it, but I want to try the lookup function.

The documentation says:
Syntax: lookup(x,a1,a2,b1,b2,…,c1,c2)
Arguments: x: a numerc expression
a1,a2,b1,b2,…c1,c2 is a list of pairs of values.
Return Value:
The value of the second value of the pair whose first value is less than or equal to x
The list of value pairs must be sorted on the first value of each pair.

How should the list be sorted (decending)?

I guess I could just try it, but I'm too lazy to type it twice.

Blacky
May 21st, 2005, 04:18 PM
:) :) I know the feeling

Ascending! Smallest voltage first, highest voltage last.

Blacky
May 21st, 2005, 04:18 PM
:) :) I know the feeling

Ascending! lowest voltage first, highest voltage last.