Translations:KAlgebra/Homework/43/da

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)

This page was last edited on 29 April 2011, at 17:21. Content is available under Creative Commons License SA 4.0 unless otherwise noted.