Manche Menschen sind echt zu dumm zum Scheißen.
DU MUSST DEN WINKEL VON GRAD IN BOGENMß UMRECHNEN!!! Sorry, aber das muss sein. Es wurde etliche Male erwähnt, dass du umrechnen musst.
Code:
function Deg2Rad(x : real) : real;
begin
Deg2Rad := x * (pi / 180);
end;
function Rad2Deg(x : real) : real;
begin
Rad2Deg := x * (180 / pi);
end;
Code:
b = sqrt(sqr(a) + sqr(c) - 2*a*c*cos(Deg2Rad(Winkel)));