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: add log functionality #15

Open
olamide203 opened this issue Oct 4, 2022 · 4 comments
Open

feat: add log functionality #15

olamide203 opened this issue Oct 4, 2022 · 4 comments
Labels
enhancement New feature or request hacktoberfest This issue is valid for hacktoberfest

Comments

@olamide203
Copy link
Owner

Description

A log Node that can evaluate the log of an expression to any base. there would be a default base (2 or 10)

log(x [, base])
// where both `x` and `base` can be any valid expression already supported

Use Case

A typical use case would be the following

let x = new Expression('2log(3, 10)')
x.evaluate() // 0.954242509439...

the base can also be an expression

let y = new Expression('log(2, 3+2)')
y.evaluate() // 0.43067655807...

Anything else?

No response

@olamide203 olamide203 added the enhancement New feature or request label Oct 4, 2022
@olamide203 olamide203 changed the title [FEATURE] add log functionality feat: add log functionality Oct 4, 2022
@olamide203 olamide203 added the hacktoberfest This issue is valid for hacktoberfest label Oct 5, 2022
@ajax484
Copy link

ajax484 commented Oct 5, 2022

Boss man, I'll love to help

@olamide203
Copy link
Owner Author

olamide203 commented Oct 5, 2022

sure, follow the contributing guide to get started. if anything is unclear, do feel free to reach out.

@tobySolutions
Copy link

Can this issue be assigned to me??

@olamide203
Copy link
Owner Author

I think we should hold off on this till #19 gets added since it directly relates to this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest This issue is valid for hacktoberfest
Projects
None yet
Development

No branches or pull requests

3 participants