Translations:KAlgebra/Homework/43/da: Difference between revisions

From KDE Wiki Sandbox
(Importing a new version from external source)
 
(Importing a new version from external source)
 
Line 1: Line 1:
Vi kan enten udregne dette direkte i '''KAlgebra''':{{Input |<nowiki>(40*15 + 30*70)/(40 + 30)</nowiki>}}
Vi kan enten udregne dette direkte i '''KAlgebra''':{{Input |<nowiki>(40*15 + 30*70)/(40 + 30)
</nowiki>}}
{{Output |<nowiki>(40*15+30*70)/(40+30)
{{Output |<nowiki>(40*15+30*70)/(40+30)
=38.5714</nowiki>}}for at finde sluttemperaturen eller vi kan definere en funktion, hvis vi skal gentage beregningen:
=38.5714</nowiki>}}
for at finde sluttemperaturen eller vi kan definere en funktion, hvis vi skal gentage beregningen:
{{Input |<nowiki>slutTemp:=(v1,t1,v2,t2)->(v1*t1 + v2*t2)/(v1+v2)</nowiki>}}
{{Input |<nowiki>slutTemp:=(v1,t1,v2,t2)->(v1*t1 + v2*t2)/(v1+v2)</nowiki>}}

Latest revision as of 17:21, 29 April 2011

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (KAlgebra/Homework)
We can then either use this directly in '''KAlgebra''':
{{Input |<nowiki>(40*15 + 30*70)/(40 + 30)
</nowiki>}}
{{Output |<nowiki>(40*15+30*70)/(40+30)
=38.5714</nowiki>}}
and get the final temperature, or put in a function if we need to repeat the computation:
{{Input |<nowiki>finalTemp:=(v1,t1,v2,t2)->(v1*t1 + v2*t2)/(v1+v2)</nowiki>}}

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)