fixed wrong calc-function selection

This commit is contained in:
zueuk 2006-06-02 12:31:47 +00:00
parent fd6268da71
commit c1e02e3731
2 changed files with 14 additions and 8 deletions

View File

@ -66,10 +66,13 @@ end;
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
procedure TVariationJulian.GetCalcFunction(var f: TCalcFunction); procedure TVariationJulian.GetCalcFunction(var f: TCalcFunction);
begin begin
if cn = 1/4 then f := CalcPower2 if c = 1 then begin
else if cn = -1/4 then f := CalcPowerMinus2 if N = 2 then f := CalcPower2
else if cn = 1/2 then f := CalcPower1 else if N = -2 then f := CalcPowerMinus2
else if cn = -1/2 then f := CalcPowerMinus1 else if N = 1 then f := CalcPower1
else if N = -1 then f := CalcPowerMinus1
else f := CalcFunction;
end
else f := CalcFunction; else f := CalcFunction;
end; end;

View File

@ -67,10 +67,13 @@ end;
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
procedure TVariationJuliaScope.GetCalcFunction(var f: TCalcFunction); procedure TVariationJuliaScope.GetCalcFunction(var f: TCalcFunction);
begin begin
if cn = 1/4 then f := CalcPower2 if c = 1 then begin
else if cn = -1/4 then f := CalcPowerMinus2 if N = 2 then f := CalcPower2
else if cn = 1/2 then f := CalcPower1 else if N = -2 then f := CalcPowerMinus2
else if cn = -1/2 then f := CalcPowerMinus1 else if N = 1 then f := CalcPower1
else if N = -1 then f := CalcPowerMinus1
else f := CalcFunction;
end
else f := CalcFunction; else f := CalcFunction;
end; end;