Re: [Pdl-general] How would you find where an N-piddle switches from positive to negative?

2022-10-05 Thread Luis Mochan
Maybe rle can gelp get all sign changes, as in your second example: pdl> $a=pdl[ 5.3332316, 4.3332316, 3.3332316, 2.3332316, 1.3332316, 0.33323163, -0.66676837, -1.6667684, -2.6667684, -3.6667684] pdl> p $a [ 5.3332316 4.3332316 3.3332316 2.3332316 1.3332316 0.33323163

[Pdl-general] How would you find where an N-piddle switches from positive to negative?

2022-10-05 Thread Eric Wheeler
Hello all, I'm trying to find the series resonant frequency of an RF component, which is where the component reactance switches from positive to negtive or vice-versa. Given an N-vector PDL of sorted elements, I need to know at what index it switches from positive to negative. Here are some