Hi everybody, I can't solve a following problem. There is one formula:
Q = a * (AX - b) + BX * c + d * CX + f * (DX - FX),
where a, b, c, d, f, g - constants, which values are unknown, but areas of values (from-to) are defined, so I could manipulate their; AX, BX, CX, DX, EX - known lists of data; FX - a list of data, which values are also unknown: FX[i + 1] = FX[ i ] + 2 * (f / g) * (EX[[ i ]] - FX[ i ]), FX[1]=EX[[1]]; My target: to get Q through manipulate of constants (fit with another graphic). The problem: as long as FX is not found Mathematica can't manipulate constants.
I would be glade your help and ideas...
Here I have an error message (see also attachments)
Manipulate[FX[1] = EX[[1]];
FX = Table[
FX[i + 1] = FX[i] + 2 (f/g)*(EX[[i]] - FX[i]), {i, 1, Length[EX]}];
ListLinePlot[a*(AX - b) + c*BX + d*CX + f*(DX - FX), Frame -> True,
PlotRange -> All,
FrameLabel -> {Style[Time [s], 12, Bold],
Style[TotalPower [W], 12, Bold]}, ImageSize -> 1000], {{g, 5}, 5,
700, 1}, {{f, 1}, 1, 20, 0.01}, {{a, 0}, 0, 500, 1}, {{c, 0}, 0, 5,
0.01}, {{b, 0}, -0.1, 0.1, 0.001}, {{d, 400}, 400, 800, 5}]
And here the proces hangs
FX[1] = EX[[1]]; FX =
Table[FX[i + 1] = FX[i] + 2 (f/g)*(EX[[i]] - FX[i]), {i, 1,
Length[EX]}]
Attachments: