Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: config option for base #19

Open
olamide203 opened this issue Oct 5, 2022 · 0 comments
Open

feat: config option for base #19

olamide203 opened this issue Oct 5, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@olamide203
Copy link
Owner

Description

a base config option that would be used as the default base for log expressions when the log feature gets added in #15 would be nice to have. this would make it possible to configure the base globally. This config option should also have a default value assigned in the TreeNode class.

Use Case

A use case of this would be:

Expression.config({
  angles: 'deg',
  base: 5
});

let x = new Expression('log(2)');
x.evaluate()   // 0.430676558073...

Anything else?

No response

@olamide203 olamide203 added the enhancement New feature or request label Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant