Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
I agree its the nested expressions, but what is MS doing after I have edited the formula, before its even displayed. It takes ages (quit at 16 hours) to evaluate the expression whilst saving the formula, but it takes less than a second to displat the formula resultant on the graph, after the save operation has been completed?
Anyway, here's a version that takes an acceptable amount of time to "evaluate"
[code:1:16d58db365]x1:=
Max(LinearReg(C,13),
Max(LinearReg(C,14),
Max(LinearReg(C,15),
Max(LinearReg(C,16),
Max(LinearReg(C,17),
Max(LinearReg(C,18),
Max(LinearReg(C,19),
Max(LinearReg(C,20),
Max(LinearReg(C,21),
Max(LinearReg(C,22),
Max(LinearReg(C,23),
Max(LinearReg(C,24),
Max(LinearReg(C,25),
Max(LinearReg(C,26),
Max(LinearReg(C,27),
Max(LinearReg(C,28),
Max(LinearReg(C,29),
Max(LinearReg(C,30),
Max(LinearReg(C,31),LinearReg(C,32))))))))))))))))))));
x2:=
Max(LinearReg(C,33),
Max(LinearReg(C,34),
Max(LinearReg(C,35),
Max(LinearReg(C,36),
Max(LinearReg(C,37),
Max(LinearReg(C,38),
Max(LinearReg(C,39),
Max(LinearReg(C,40),
Max(LinearReg(C,41),
Max(LinearReg(C,42),
Max(LinearReg(C,43),
Max(LinearReg(C,44),
Max(LinearReg(C,45),
Max(LinearReg(C,46),
Max(LinearReg(C,47),
Max(LinearReg(C,48),
Max(LinearReg(C,49),LinearReg(C,50))))))))))))))))));
x3:=Max(x1,x2);
x4:=
If(x3=LinearReg(C,13),13,
If(x3=LinearReg(C,14),14,
If(x3=LinearReg(C,15),15,
If(x3=LinearReg(C,16),16,
If(x3=LinearReg(C,17),17,
If(x3=LinearReg(C,18),18,
If(x3=LinearReg(C,19),19,
If(x3=LinearReg(C,20),20,
If(x3=LinearReg(C,21),21,
If(x3=LinearReg(C,22),22,
If(x3=LinearReg(C,23),23,
If(x3=LinearReg(C,24),24,
If(x3=LinearReg(C,25),25,
If(x3=LinearReg(C,26),26,
If(x3=LinearReg(C,27),27,
If(x3=LinearReg(C,28),28,
If(x3=LinearReg(C,29),29,
If(x3=LinearReg(C,30),30,
If(x3=LinearReg(C,31),31,
If(x3=LinearReg(C,32),32,99))))))))))))))))))));
x5:=
If(x3=LinearReg(C,33),33,
If(x3=LinearReg(C,34),34,
If(x3=LinearReg(C,35),35,
If(x3=LinearReg(C,36),36,
If(x3=LinearReg(C,37),37,
If(x3=LinearReg(C,38),38,
If(x3=LinearReg(C,39),39,
If(x3=LinearReg(C,40),40,
If(x3=LinearReg(C,41),41,
If(x3=LinearReg(C,42),42,
If(x3=LinearReg(C,43),43,
If(x3=LinearReg(C,44),44,
If(x3=LinearReg(C,45),45,
If(x3=LinearReg(C,46),46,
If(x3=LinearReg(C,47),47,
If(x3=LinearReg(C,48),48,
If(x3=LinearReg(C,49),49,
If(x3=LinearReg(C,50),50,99))))))))))))))))));
Min(x4,x5);[/code:1:16d58db365]
Hope this helps, someone!
wabbit :D
|