Create the following plots of the output spectrum for a non-linear mixer
with two signal inputs: one at $fa[1] MHz and the other at $fb[1] MHz.
NOTE: First order signals are 11 V, second order signals are 9 V, third
order signals are 7 V, etc.

¤tpart. Plot the first three harmonics of each signal, working from lowest
to highest frequency. If multiple harmonics occur at the same frequency,
plot them tip to tail from largest to smallest.

# These submission variables appear to be local to this (part or custom response) only. ($a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l,$m,$n,$o,$p,$q,$r,$s,$t,$u,$v,$w,$x) = split(',',$submission); # Variables such as $f[0] are global when used in conditional expressions, but # assignments appear to only work for local variables. if ($a==$f[0] && $b==$tails[0] && $c==$f[0] && $d==$tip[0]) { $v1part=1/6;} # If correct, update part 1 score else { $v1part=0;} # If wrong keep part 1 score zero if ($e==$f[1] && $f==$tails[1] && $g==$f[1] && $h==$tip[1]) { $v2part=1/6;} # If correct, update part 2 score else { $v2part=0;} # If wrong keep part 2 score zero if ($i==$f[2] && $j==$tails[2] && $k==$f[2] && $l==$tip[2]) { $v3part=1/6;} # If correct, update part 3 score else { $v3part=0;} # If wrong keep part 3 score zero if ($m==$f[3] && $n==$tails[3] && $o==$f[3] && $p==$tip[3]) { $v4part=1/6;} # If correct, update part 4 score else { $v4part=0;} # If wrong keep part 4 score zero if ($q==$f[4] && $r==$tails[4] && $s==$f[4] && $t==$tip[4]) { $v5part=1/6;} # If correct, update part 5 score else { $v5part=0;} # If wrong keep part 5 score zero if ($u==$f[5] && $v==$tails[5] && $w==$f[5] && $x==$tip[5]) { $v6part=1/6;} # If correct, update part 6 score else { $v6part=0;} # If wrong keep part 6 score zero $total_score = $v1part+$v2part+$v3part+$v4part+$v5part+$v6part; # Update total score return ('ASSIGNED_SCORE',$total_score);
Frequency (MHz) Amplitude (V) @f @tails @zeros @mag


¤tpart. Plot the signal cross products for m,n equal 1,2. Work from lowest
to highest non-zero frequency. If multiple harmonics occur at the same frequency,
plot them tip to tail from largest to smallest.
If any vectors are not used, place them at the origin with a magnitude of 5 V.
# These submission variables appear to be local to this (part or custom response) only. ($a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l,$m,$n,$o,$p, $q,$r,$s,$t,$u,$v,$w,$x,$y,$z,$aa,$bb,$cc,$dd,$ee,$ff) = split(',',$submission); if ($a==$fcp[0] && $b==$tailscp[0] && $c==$fcp[0] && $d==$tipcp[0]) { $v1cppart=1/8;} # If correct, update part 1 score else { $v1cppart=0;} # If wrong keep part 1 score zero if ($e==$fcp[1] && $f==$tailscp[1] && $g==$fcp[1] && $h==$tipcp[1]) { $v2cppart=1/8;} # If correct, update part 2 score else { $v2cppart=0;} # If wrong keep part 2 score zero if ($i==$fcp[2] && $j==$tailscp[2] && $k==$fcp[2] && $l==$tipcp[2]) { $v3cppart=1/8;} # If correct, update part 3 score else { $v3cppart=0;} # If wrong keep part 3 score zero if ($m==$fcp[3] && $n==$tailscp[3] && $o==$fcp[3] && $p==$tipcp[3]) { $v4cppart=1/8;} # If correct, update part 4 score else { $v4cppart=0;} # If wrong keep part 4 score zero if ($q==$fcp[4] && $r==$tailscp[4] && $s==$fcp[4] && $t==$tipcp[4]) { $v5cppart=1/8;} # If correct, update part 5 score else { $v5cppart=0;} # If wrong keep part 5 score zero if ($u==$fcp[5] && $v==$tailscp[5] && $w==$fcp[5] && $x==$tipcp[5]) { $v6cppart=1/8;} # If correct, update part 6 score else { $v6cppart=0;} # If wrong keep part 6 score zero if ($y==$fcp[6] && $z==$tailscp[6] && $aa==$fcp[6] && $bb==$tipcp[6]) { $v7cppart=1/8;} # If correct, update part 7 score else { $v7cppart=0;} # If wrong keep part 7 score zero if ($cc==$fcp[7] && $dd==$tailscp[7] && $ee==$fcp[7] && $ff==$tipcp[7]) { $v8cppart=1/8;} # If correct, update part 8 score else { $v8cppart=0;} # If wrong keep part 8 score zero $total_cpscore = $v1cppart+$v2cppart+$v3cppart+$v4cppart +$v5cppart+$v6cppart+$v7cppart+$v8cppart; # Update total score return ('ASSIGNED_SCORE',$total_cpscore);
Frequency (MHz) Amplitude (V) @fcp @tailscp @zeroscp @magcp