Difference between revisions of "Inversus"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function Inversus(E: Extended): Extended; </source> ===Source Code=== <source lang="scar"> function Inversus(E: Extended): Exte...") |
|||
Line 1: | Line 1: | ||
==Definition== | ==Definition== | ||
<source lang="scar" lines="false"> | <source lang="scar" lines="false"> | ||
− | function Inversus(E: Extended): Extended; | + | function Inversus(const E: Extended): Extended; |
</source> | </source> | ||
===Source Code=== | ===Source Code=== | ||
<source lang="scar"> | <source lang="scar"> | ||
− | function Inversus(E: Extended): Extended; | + | function Inversus(const E: Extended): Extended; |
begin | begin | ||
Result := Power(E, -1); | Result := Power(E, -1); |
Latest revision as of 19:56, 30 August 2011
Definition
function Inversus(const E: Extended): Extended;
Source Code
function Inversus(const E: Extended): Extended; begin Result := Power(E, -1); end;
Availability
SCAR Divi 3.00 > Current
Description
This function inverts a given extended floating point value E.
Example
begin WriteLn(Inversus(2)); end.
Output:
0,5