gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control system
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9dd4379)
raw | patch | inline | side by side (parent: 9dd4379)
author | Doni Pracner <quinnuendo@gmail.com> | |
Thu, 6 Feb 2014 15:29:50 +0000 (16:29 +0100) | ||
committer | Doni Pracner <quinnuendo@gmail.com> | |
Thu, 6 Feb 2014 15:29:50 +0000 (16:29 +0100) |
kodovi/polinomi/POLINOML.DEF | patch | blob | history | |
kodovi/polinomi/POLINOML.MOD | patch | blob | history |
index a88e55b9d937516f93ea9ab76caea25a397f12eb..da9ff342524a144e7927db4f9b3a8ed9153cf673 100644 (file)
VAR kopija: Polinom);\r
PROCEDURE PostaviClan(k: REAL; st:CARDINAL; \r
VAR p:Polinom);\r
+PROCEDURE KoeficijentUz(p:Polinom; st:CARDINAL):REAL;\r
PROCEDURE UbaciMonom(mon:Polinom; \r
VAR p: Polinom);\r
PROCEDURE PromeniZnak(VAR p: Polinom);\r
index 309b34905b1a077a6f29fbe326e02c1c25e3e93c..6de51656eb818843353f71ae0033a74ea219b60c 100644 (file)
END;\r
END PostaviClan;\r
\r
+PROCEDURE KoeficijentUz(p:Polinom; st:CARDINAL):REAL;\r
+VAR\r
+ tekuci : Polinom;\r
+BEGIN\r
+ tekuci := p;\r
+ WHILE (tekuci#NIL) AND (tekuci^.st > st) DO\r
+ tekuci := tekuci^.veza;\r
+ END;\r
+ IF (tekuci # NIL) AND (tekuci^.st = st) THEN\r
+ RETURN tekuci^.k;\r
+ ELSE\r
+ RETURN 0.0;\r
+ END;\r
+END KoeficijentUz;\r
+\r
PROCEDURE UbaciMonom(mon:Polinom; VAR p: Polinom);\r
VAR\r
stari, tekuci, kopija: Polinom;\r