# Mathematische Formeln (Logarithmus) in Flows

**URL:** <https://community.homey.app/t/mathematische-formeln-logarithmus-in-flows/139157>\
**Category:** 🇩🇪 Deutsch (German)\
**Created:** [July 3, 2025, 12:55pm UTC](https://community.homey.app/t/mathematische-formeln-logarithmus-in-flows/139157 "2025-07-03T12:55:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephan\_Ebeling](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stephan_ebeling/32/57208_2.png) [@Stephan\_Ebeling](https://community.homey.app/u/Stephan_Ebeling)\
**Post date:** [July 3, 2025, 12:55pm UTC](https://community.homey.app/t/mathematische-formeln-logarithmus-in-flows/139157/1 "2025-07-03T12:55:54Z")

</div>

Hi zusammen, ich möchte mathematihsche Formeln in den Flow benutzen. Wie komme ich an Formeln für zB. Logarithmus?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/c/fc74c6b9097708a731573f673b4d6d91cb4b6d8e.png)  
so funktioniert es leider nicht. Jemand eine Idee?

(Hintergrund: ich möchte mir meinen Taupunkt berechnen)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [July 3, 2025, 1:35pm UTC](https://community.homey.app/t/mathematische-formeln-logarithmus-in-flows/139157/2 "2025-07-03T13:35:40Z")

</div>

Hallo Stephan,

Versucht zunächst auf einfache Weise herauszufinden, ob es mit einer Zahl funktioniert?

Zumindest bei dir fehlt der Abschluss `)` von `{{ log() }}`

 ![Screenshot_20250703_152952_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/d/0d126e8a1f8d15b8ee1e1cb1611f37dfcd99d70f.jpeg)

Und _ **niemals Kommas als Dezimalpunkte** _ verwenden! Kommas sind Teil der Funktion:  
`log(10000, 10)` // this returns 4

Deine Berechnung sollte folgendermaßen aussehen:

`{{ log( ([#Luftfeuchtigkeit] / 100) + 17.625 * [#Temperatur] / (243.04 + [#Temperatur]) ) }}`

> **[math.js | an extensive math library for JavaScript and Node.js](https://mathjs.org/)**
>
> Math.js is an extensive math library for JavaScript and Node.js. It features big numbers, complex numbers, matrices, units, and a flexible expression parser.

---

<div class="post-metadata">

**Author:** ![DirkH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkh/32/78952_2.png) [@DirkH](https://community.homey.app/u/DirkH)\
**Post date:** [July 3, 2025, 2:57pm UTC](https://community.homey.app/t/mathematische-formeln-logarithmus-in-flows/139157/3 "2025-07-03T14:57:00Z")

</div>

> [@Stephan\_Ebeling](#):
>
> so funktioniert es leider nicht. Jemand eine Idee?

Ich habe es nicht ausprobiert, aber auf jeden Fall fehlt Dir nach dem letzten **#Temperatur** die Klammer zu **)**.

---

<div class="post-metadata">

**Author:** ![SingKT](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/singkt/32/173226_2.png) [@SingKT](https://community.homey.app/u/SingKT)\
**Post date:** [July 5, 2025, 9:06am UTC](https://community.homey.app/t/mathematische-formeln-logarithmus-in-flows/139157/4 "2025-07-05T09:06:20Z")

</div>

Ich verwende für den Taupunkt: 243.12\*((17.62\*$values[0])/(243.12+$values[0])+Math.log($values[1]/100))/((4283.77)/(243.12+$values[0])-Math.log($values[1]/100)) in / mit einem Advanced Virtual Device. Value[0] = Temperatur, value[1] = Luftfeuchtigkeit
