gtg922r / obsidian-numerals

An obsidian plugin which turns a math code block into a full featured calculator
Other
389 stars 7 forks source link

Wrong units in result (W / m^2 => m^-4) #41

Closed kobayashison closed 1 year ago

kobayashison commented 1 year ago

Here an example:

potenza_pannello = 410 W → 410 W
area_pannello = 2 m * 3 m → 6 m^2
densità_potenza = potenza_pannello / area_pannello W/m^2 → 68,333 m^-4
gtg922r commented 1 year ago

I think this is an order of operations issue.

Try:

densità_potenza = (potenza_pannello / area_pannello) in W/m^2

or

densità_potenza = potenza_pannello / area_pannello in W/m^2

Closing, but please re-open if its still an issue

kobayashison commented 1 year ago

My mistake was the lack of "in" keyword, not a problem of order, so it works also like the second suggestion you wrote, without parenthesis. Thank you!