Git Product home page Git Product logo

hyoka's Introduction

Hi ๐Ÿ‘‹, I'm Olamide Atitebi

A passionate full stack web developer. I love learning about new technologies and contributing to open-source

olamide203 olamide_farouq total stars followers

  • ๐Ÿ”ญ Iโ€™m currently working on gittz

  • ๐ŸŒฑ Iโ€™m currently learning Nextjs

  • ๐Ÿ’ฌ Ask me about react, express

  • ๐Ÿ“ซ How to reach me [email protected]

Languages Tools ๐Ÿ”ง๐Ÿ”จ

javascript typescript python react html5 css3 bootstrap docker express git linux mariadb mongodb nextjs nodejs postman sass tailwind bash

Hacktoberfest2022

@olalmide203's Holopin board

Connect With Me ๐Ÿค๐Ÿค

olamide203

olamide203

hyoka's People

Contributors

fazzaamiarso avatar kat-kan avatar luainjector avatar olamide203 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hyoka's Issues

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

feat: add log functionality

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

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

Add issue template for bugs

add issue template for bugs to enable a detailed explanation of the bug expreienced and the expected behaviour

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

bug issue template

there is a bug in the yml syntax of the bug.yml file inside the issue templates folder

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

Add natural log node class

is there an existing issue for this?

  • I have searched the existing issues

Description

it would be great to have a natural log node class that can be used to evaluate expressions of the form ln(x) by the parser. a new class NaturalLog that extends the TreeNode class would be the ideal solution.

Use Case

new Expression('ln(2)').evaluate()        // 0.6931471805....
new Expression('ln(2ฯ€)').evaluate()     // 1.83787706640....

Anything else?

No response

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

Lexer Typo

In your Lexer.ts file, I believe there is a typo on Line 6. I'm guessing you mean "atan" instead of "atam"

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

feat: add options for decimal places

Description

I couldn't set the number of decimal places through only hyoka and had to do extra processing with decimal.js which requires user to install another library.

const { Expression } = require('hyoka');
const Decimal = require('decimal.js');
Expression.config({
  precision: 10
});
new Decimal(new Expression('12345 + 1/3').evaluate()).toDecimalPlaces(4).toString()

Use Case

I think the evaluate() method can support configurting decimal places with method signatureevaluate(options?: {decimalPlaces?: number})

Anything else?

No response

feat: config option for base

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

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

test

Current Behaviour

test

Expected Behaviour

test

Steps to Reproduce

test

Anything else?

test

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.