GithubHelp home page GithubHelp logo

agiale / derivative-calculator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raju2592/derivative-calculator

0.0 0.0 0.0 19 KB

calculates the derivative of the given function

Home Page: http://derivative-calculator.herokuapp.com/

JavaScript 96.52% CSS 0.16% HTML 3.32%

derivative-calculator's Introduction

derivative-calculator

live app: derivative-calculator

Calculates the symbolic derivative of the given function. It parses the expression first using recursive descent parsing and then recusrsively calculates the derivative. It uses MathJax to render mathematical expressions written in AsciiMath

The following functions and operators are currently supported functions: ln, sqrt, sin, cos, tan, cot, sec, cosec. operator: unary and binary - and +, ^ (exponential), * (multiplication), \ (division)

All arguments to functions should be enclosed in parentheses. for example : sin(x+1), sqrt(x^2)

Operator Precedance

  1. ln, sqrt, sin, cos, tan, cot, sec, cosec
  2. ^
  3. unary - and +
  4. * and /
  5. d/dx
  6. binary - and +

So, d/dx a*b means d/dx (a*b), but d/dx a + b means (d/dx a) + b. also sin(x)^3 means ((sin(x))^3 and not sin(x^3).

Operator Associativity

  1. left associative: +, -, *, /
  2. right associative: ^

So, a*b/c/d means ((a*b)/c)/d, and a^b^c means a^(b^c).

In case of power of trigonometric functions, you should provide input like (sin(x))^3, sin^3(x) will not work.

derivative-calculator's People

Contributors

raju2592 avatar

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.