Translations:KAlgebra/Homework/43/da

From KDE Wiki Sandbox
Revision as of 17:12, 29 April 2011 by Claus chr (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Vi kan enten udregne dette direkte i KAlgebra:

(40*15 + 30*70)/(40 + 30)
(40*15+30*70)/(40+30)
=38.5714

for at finde sluttemperaturen eller vi kan definere en funktion, hvis vi skal gentage beregningen:

slutTemp:=(v1,t1,v2,t2)->(v1*t1 + v2*t2)/(v1+v2)