Replies: 1 comment
-
Ah, yeah, I think it's not possible right now to define non-linear unit conversions. As a workaround you could maybe implement a helper function like @ericman314 do you have any thoughts in this regard? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Basically, I need to implement support for Watts to dBW and dBm. The conversion from Watts to dBW is defined as P(dBW) = 10*log10( P(w) / 1W ). Implementing this conversion using the options provided with the mathjs.createUnit function just doesn't seem possible.
I've had no luck in finding an alternative solution by searching various forums, the discussions here on Github, and the documentation. I feel like I am missing something obvious.
Any advice?
Beta Was this translation helpful? Give feedback.
All reactions