Giter VIP home page Giter VIP logo

circuit_calculator's Introduction

#Circuit Calculator

##Overview

I'm an electronic engineering student. So there are a lot of problems related to circuit to do. When questions come to parallel connection, the formula to retain resistance of circuit could be extremely complex. We have resistance when two circuits are connected parallel. The total is equal to the reciprocal of the sum of all the reciprocal of the resistance of the branch. The formula will be R=1/(1/R1+1/R2). It would be very unhappy expirence when it combines comprehensive operation. Hence, I decided to design a simple calculator which is optimized for circuit calculation.

##Features

  • Normal Mathematics Expression
  • Interactive Environmemt
  • Complex Support (Will be added later)

##Support Operation

Arithmatic Operators

  • lhs+rhs Add
  • lhs-rhs Substract
  • lhs*rhs Multiply
  • lhs/rhs Divide
  • () Bracket
  • lhs^rhs pow

Operator Specialized for circuit

  • lhs|rhs which products the parallel resistance of lhs and rhs. The piority equals to * and /

##Compile

The code is included in single file expression.cpp temperarily. You can just use g++ to compile it with -std=c++11 option.

g++ expression -o yourfilename -std=c++11

yourfilename is dicided by yourself.

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.