You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 base n using log(n, c). The same goes for sqrt.
It would be great if this package would also support those and it seems relatively straight-forward:
log supports either log(c) or log(n, c) (not a breaking change). This would look like this when converted to TeX → \log{c} & \log_n{c}
sqrt supports either sqrt(c) or nrt(n, c) (also not a breaking change). This would look like this when converted to TeX → \sqrt{c} & \sqrt[n]{c}.
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.
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)
The text was updated successfully, but these errors were encountered: