Trending News
Promoted
How do I can this formula in delphi . elogantion = P*L / A*E?
2 Answers
Relevance
- BeatmasterLv 41 decade agoFavorite Answer
Assuming you have declared all the variables in your equation, you can put this code in a procedure or function:
elongation := P * L / A * E;
- Anonymous1 decade ago
if you want to have the formula as a function, declare a function like this:
function elog(P,L,A,E: float):float;
begin
Result:=P*L/A*E;
end;
Now ou can use it like this:
MyVar:=elog(3,9,1,6);
Still have questions? Get your answers by asking now.