Giter Site home page Giter Site logo

atom-math's People

Contributors

b3by avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

atom-math's Issues

Input view for commands

It could be good to get a droppable input view where commands can be inserted, to be used when it's not desired to insert text in the current buffer.
An icon could be added to the status bar.

Output console messages

It might be nice to wrap console.log to return output messages instead of just returning the result only. As I recall, it's a little awkward since the way in which console interacts with arguments isn't fully covered by standards so it takes some care to do properly. Otherwise perhaps there's another way to intercept and forward these messages to the output.

Definite integration

As note, integration support could be achieved with external packages such as this one, using the same interface.

f(x) = cos(1/x) * x
> saved
integrate(f, 0, 1, 0.01)
...

Print list of new functions

Some inner commands should be specified, so that internal logic could be added to the package. An example is the command to print a list of all defined functions.

f(x) = x + 1
> saved
g(x) = x + 2
> saved
1 + 2
> 3
/printFunctions
> f(x) = x + 1
> g(x) = x + 2

Function evaluation

Next big improvement to the package would be function evaluation in an easy, user-friendly fashion.

My approach would go for declaring a function and then evaluate it according to the passed values, such as:

f(x) = x + 3
> f(x) saved
compute(f, 39)
> f(39) = 42

Maybe, a query on the available functions could also be possible, like:

...
symbols
> f(x) // f(y) // g(z)

History

Command history should be available with some hotkey in the text editor. Early development stage takes ctrl-up and ctrl-down to navigate through the history. Full history should be available when typing history in the buffer?

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.