Giter Site home page Giter Site logo

cano-jones / symbolic_differenciator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 19 KB

This simple Python project takes a string of characters representing a mathematical expression and returns its derivative with respect a given variable.

License: Other

Python 100.00%
derivatives mathematical-programming symbolic-computation

symbolic_differenciator's Introduction

Symbolic Differenciator

This python project uses the recursive properties of the derivative to differentiate a mathematical expression consisting on fundamental operators such as addition (+), substraction (-), multiplication (*), division (/) and exponentiation (^); alongside elementary functions (including square roots, logarithms, exponentials, trigononometric functions and hyperbolic functions). It also allows the use of undefined functions and variables with multiple lengths.

Once executed, the program will ask for the expression to differenciate, and will be entered as a string of characteres given by keyboard. The expression must follow the usual order of operations and parenthesis. Functions must be preceded by the \ reserved character, followed by its name, and then the argument between braces {arg} an example of a function might be \func{arg}.The derivative of unknown elements will be described by D{unknown}. A complete list of defined functions can be found at the end of this markdown.

Once given this imput, the program will ask the user for a derivation variable, if no input is given, the derivation variable will be considered to be x.

This is an example of the program execution:

$ python3 Derivative_Calculator.py

Diferenciate: 2*x+\sin{x}-\f{\sqrt{x}}

With respect to:

= 2+\cos{x}-1/(2*\sqrt{x})*D{\f{x}}


List of defined functions

  • \sqrt{x} Square root of x
  • \ln{x} Natural logarithm of x
  • \exp{x} Exponential function of x
  • \sin{x} Sine of x
  • \cos{x} Cosine of x
  • \tan{x} Tangent of x
  • \arcsin{x} Inverse sine function of x
  • \arccos{x} Inverse cosine function of x
  • \arctan{x} Inverse tangent function of x
  • \sinh{x} Hiperbolic sine of x
  • \cosh{x} Hiperbolic cosine of x
  • \tanh{x} Hiperbolic tangent of x
  • \arcsinh{x} Inverse hiperbolic sine of x
  • \arccosh{x} Inverse hiperbolic cosine of x
  • \arctanh{x} Inverse hiperbolic tangent of x

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

symbolic_differenciator's People

Contributors

cano-jones avatar

Watchers

 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.