Coder Social home page Coder Social logo

my-interuptor's Introduction

This repo will show me progressing through learning parsing and interrupting expressions, in C#.

I started with a bracket parsing project, and I plan to be able to eventually solve any equation (that can be simplified into a quadratic equation).

I hope you'll find my learning process intresting.

##What I've done so far

  1. Parsed parens of the sort ((5)((3)(2)))

  2. Parsed and calculated math expressions like 5 - 3 * 2 (with order of operations)

  3. Parsed and calculated math expressions like (5 + 2) * 3 (including parens)

  4. Parsed equations like 2x + 5 = 4

  5. Simplfied equations

  6. Solved equations (up to quadratic)

===================================================

feature status
parse parens DONE
parse arith DONE
calcu arith DONE
parse algeb DONE
simpl algeb DONE
solve algeb DONE
domain TODO
Math TODO
library & winform TODO

##TOOD

  • Work on domain of solutions, eg. 1/x = 1/x true for all x /= 0.
  • Migrate into a library and making a winform project
  • Work on Math project

my-interuptor's People

Watchers

 avatar

my-interuptor's Issues

Fixing this.SimplifyDivision()

To eliminate all division there is need to add a while loop, as long as there's division in the tree, simplify it, such way will also improve performance by a little bit.

Problem with factoring

factoring doesn't work, it is needed for canceling to work well

to cancel (x^2 + 2x + 1) with (x+1) in say, division, factoring is needed.

Problem with 0=x

solving for 0 = x results in plus infinity, while solving for x = 0 results in 0.

To fix division

On line 640 add checking for reverse divisability: (x+1)/(1+x).

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.