Closed creativecreatorormaybenot closed 3 years ago
Thanks for your interest in this library and for your suggestions. In the end I created a new class to deal with these types of functions; in addition to log and nrt I've implemented vanilla flavored pow.
@ram6ler Thank you so much for this ❤️ This is totally awesome ✨
Also like the vanilla pow
as an easy addition 💪
Hi @ram6ler - thanks for creating this awesome package ✨ The functionality is amazing.
It integrates quite well with
math_expressions
(the string reprensentations in that package) and it supports almost all of the same functions. However, there is one missing feature we noticed.Feature request: log(n, c) & nrt(n, c)
In
math_expressions
, you can define a logarithm to an arbitrary basen
usinglog(n, c)
. The same goes forsqrt
.It would be great if this package would also support those and it seems relatively straight-forward:
log
supports eitherlog(c)
orlog(n, c)
(not a breaking change). This would look like this when converted to TeX →\log{c}
&\log_n{c}
sqrt
supports eithersqrt(c)
ornrt(n, c)
(also not a breaking change). This would look like this when converted to TeX →\sqrt{c}
&\sqrt[n]{c}
.For the
functionMap
part, it should also be straight-forward:log(n, c)
would be(n, c) => log(c) / log(n)
nrt(n, c)
would be(n, c) => pow(c, 1 / n)