Giter Site home page Giter Site logo

calque's Introduction

Reactive calculator

Expressions

2 inch to cm
cos(45 deg)
2 + 2 * 2
sqrt(3^2 + 4^2)

Variables

a = 25
b = a * 2
postal code = 1122

Summing lists

animals:
  cats = 2
  dogs = 3
plants:
  trees = 20
  vegetables:
    potatoes = 10
    carrots = 10

Functions

pow2(x) = x ^ 2
pow2(6)

Last result

2 * 2
last + 1

Keys

Duplicate line or selection: Ctrl+D

Change selected number: Up/Down

Change selected number 10x: Shift+Up/Down

Change indent: Tab/Shift+Tab

Using Math.js:

https://github.com/grimalschi/mathjs

calque's People

Contributors

grimalschi avatar lolbinarycat avatar ruslan-sh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

calque's Issues

Comments

Interesting tool, but I didn't find sign to comment line.
When you do many calculations, comments will help you understand what's happening

Dark theme

First of all, thanks, awesome project.

This is just a simple feature request. It would be even more awesome if you could implement dark colors that comforts prefers-color-scheme.

matrix, vector, limits

using ur calque every day but sometimes i need some things like matrix or derivative but there are no such things so im requesting it.
got some idea how to do matrix, use such counstruction like

A={
i, j, k ...
a, b, c ...
x, y, z ...
}
and fucs like det(A) or pow-1(A) would be also usefull for this

Add support for previous result

So it would be nice to chain calculations without creating variables for each result

2+2 ( = 4)
Ans + 2 ( = 6)  // or underscore like in Python

Need ability to Cut&Paste with and without results of calcularion

Currently both Cut and Paste only works for the formulas themselves.
It would be nice to support 2 additional scenarios:

  1. I want to Copy formulas with results to send to somebody (e.g. by email).
  2. I've received an email with results of 1 above (formulas with results), and I want to Paste them with results ignored.

Function "pow2" doesn't work

In examples you use e.g.

pow2(6)

which isn't a valid function. pow(x,2) seems to work, though. Is "pow2" in examples a typo?

support operators +=, -=

Если можно, не помешала бы поддержка операторов инкремента и декремента

Строковые переменные с \n

При вводе строковых переменных с переносом строки, типа \n, не очень хорошо смотрится:
1
Было бы здорово сделать, чтобы выглядело как-то так:
2
Т.е. текст с переносами отображается табуированно, еще было бы классно, если бы новую команду на этой строке нельзя было написать.

problem with comments and strings literals

It seems that contents of the comments and string literals have some side effect.

The testcase for comments:

#  = r*tan(a) = tan(a)
tan(0)

The testcase for strings:

x= " = r*tan(a) = tan(a)"
tan(0)

Expected result: = 0
Actual result: // Error: Undefined symbol r
(in the both cases)

Perhaps there is need a proper parser instead of plain text processing.

Pi issue

there is something with the Pi const
image

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.