Giter Club home page Giter Club logo

pud's Introduction

Pud

Human friendly calculator app for Linux

pud_example

This is a working in progress project.

Introduction

Pud is a calculator app for Linux that tries to emulate natural language for describing the equations, it also allows taking notes with the math. With Pud, you can write things like this:

This delicious ice cream costs 5.0 plus 0.25 after taxes // Pud evaluates to 5.25

Grammar

Pud has a special grammar so math and text can come together.

Everything that can't be parsed into an expression is a text, so there are no reserved keywords, here are some expressions you can write with Pud:

Basic Arithmetic

  • Addition:
    • 2 + 2
    • 5 plus 10
    • 6 with 4
  • Subtraction:
    • 2 - 2
    • 5 minus 10
    • 6 subtract 4
  • Multiplication:
    • 2 * 2
    • 5 mul 10
    • 6 times 4
    • 3 multiplied by 6
  • Division:
    • 3 / 2
    • 10 div 5
    • 6 divide 4
    • 7 divided by 7
  • Power
    • 2 ^ 2
    • 3 ** 4

Floating Point

Pud supports single precision floating-point math, so you can calculate 2.3456 + 3.4, if you omit the decimals Pud will do his best to evaluate the answer to integer. For example:

  • 2 + 1: answer is an integer because both terms are integer.
  • 2.5 + 1: answer is a float because one of the terms is float.
  • 5 / 3 or 2 ** 5: always evaluates to float for the sake of simplicity.

TO-DO

  • Graphical User Interface
  • Speed, Distance, Temperature and Time conversions.
  • Advanced math functions: ln, exp, etc.
  • Currencies and Cryptocurrencies conversions.
  • .deb and .rpm packages.

pud's People

Contributors

andreihod avatar

Stargazers

Roman avatar Luiz Parreira avatar Philip Sampaio avatar Lucas Sunsi Abreu avatar

Watchers

James Cloos 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.