1

I try to better define my question.

I have a vector q:

q={(2 (3 d^4 + 8 d^3 h - 30 d^2 h^2 + 20 d h^3))/((3 d - 4 h)^2 (d - 2 
h)^2), ( 2 d - 3 h)/(d - 2 h), (-3 d^3 + 5 d^2 h - 2 d h^2)/((3 d - 4 h) (d 
- 2 h)^2), ( 2 d - 3 h)/(d - 2 h), (-3 d^3 + 5 d^2 h - 2 d h^2)/((3 d - 4 h) 
(d - 2 h)^2), 1 + d/(2 (d - 2 h)), ( 2 d - 3 h)/(d - 2 h), 1 + d/( 2 (d - 2 
h)), (2 (d^2 - 2 d h + h^2))/(d - 2 h)^2};
h=1;
qc = Abs[q[[1;;6]]];
qb = -Abs[q[[7;;9]]];
qstar=Join[qc,qb];
Manipulate[ListPlot[qstar]‌​,{d,0.01,1}] 

It doesn't work...ListPlot doesn't plot...

Gae P
  • 637
  • 3
  • 11

1 Answers1

0

If you know the dimension of q is always 9 with the first six positive and last three negative, then you can just write:

qstar = { 1, 1, 1, 1, 1, 1,-1,-1,-1} Abs[q]

Otherwise, you can use some trickery to get the multiplying vector.

MikeY
  • 7,153
  • 18
  • 27