JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q58882F

Command-line cientific calculator based on node REPL, with the possibility to declare functions and variables, and save them and load them. This command-line calculator possesses a permanent history.

Package Exports

  • sci-calc

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sci-calc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

sci-calc

Command-line scientific calculator based on node REPL, with the possibility to declare functions and variables, and save them and load them. This command-line calculator possesses a permanent history.

Getting Started

Install the module with: npm install sci-calc, then from the sci-calc package directory run: npm link Then use it with the command: sc For help, use: help

Documentation

Available commands:

save x: save declared variable or function x

load x: load saved variable or function x

show [opt]: show [-s --saved] and [-d --declared] variables and functions

search x: search if variable or function x is saved

remove: remove saved variable or function x

forget x: forget declared variable or function x

reset: forget all declared variables and functions

flushistory: clear all history

help [opt]: show this help, or special sections [opt]:

   -g --general general help

   -c --commands list of commands

   -m --math list of available math functions

   -p --protected list of protected names

exit: exit sci-calc

Contributing

Feel free to contribute to this project

License

Copyright (c) 2018 François Risoud Licensed under the MIT license.

By the way

Power operator ** is now part of the ES6 spec and is implemented in recent node versions. But to support older versions of node, x**n is parsed and cast it into pow(x, n).