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

From KDE UserBase Wiki
(Created page with "Тепер ми можемо або безпосередньо ввести значення у '''KAlgebra''': {{Input |<nowiki>(40*15 + 30*70)/(40 + 30) </nowiki>}} {{Output...")
 
(No difference)

Latest revision as of 10:01, 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>}}

Тепер ми можемо або безпосередньо ввести значення у KAlgebra:

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

і отримати остаточну температуру, або створити функцію, якщо обчислення треба буде повторити:

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