Mathcad logarithm with units

1.2k views Asked by At

I'm learning how to use Mathcad and its symbolic engine, and it's pretty good. But I've encountered a major drawback, while working with units.

ln(2)=0.693, performing the natural logarithm on the integer 2 returns the expected result.

ln(2*s)= throws an error: These units are not compatible where s is labeled as a unit, referring to seconds.

Expected result: ln(2*s)=0.693*s

Simply adding the variables units later is not an option, as the ln function can appear as a result of previous symbolic calculations. Any ideas on how to get it working?

Mathcad Prime 7.0.0.0

1

There are 1 answers

1
vs_nikolaev On BEST ANSWER

I can suggest this way: you can just redefine standard log-function like that

enter image description here

But please, be careful with what you expect from unit defined log-functions.