ram6ler / function-tree

A simple dart library for parsing strings into callable function-trees.
MIT License
23 stars 11 forks source link

Logarithms to Arbitrary Bases & n Roots #1

Closed creativecreatorormaybenot closed 3 years ago

creativecreatorormaybenot commented 3 years ago

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:

For the functionMap part, it should also be straight-forward:

ram6ler commented 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.

creativecreatorormaybenot commented 3 years ago

@ram6ler Thank you so much for this ❤️ This is totally awesome ✨

Also like the vanilla pow as an easy addition 💪