daisy/TODO.md

1.6 KiB

Pre-release

  • Commands to list units and substitutions
  • delete variables

Parser

  • Better error when sin = 2
  • Define functions (f(x) = ??)
  • Should functions be operators?
  • Multi-argument functions

General

  • Optional config file
  • Optional history file
  • Compile to WASM, publish a webapp
  • Options:
    • disable replacement
    • disable special characters
    • 1/ as -1 power toggle
    • powers as superscripts toggle
  • evaluate straight from command line
  • Auto-push to crates.io

Internals

  • Non-recursive treeify
  • Faster factorial function. Maybe use gamma instead?
  • Arbitrary precision float (rug doesn't offer arbitrary exponents)
  • Remove rug dependency (too big, incompatible)

Math Features

  • Function definitions
  • Dice
  • Mean, Median, Min
  • Arbitrary base logarithm
  • Derivatives
  • CAS features (trig, roots and powers)
  • Complex numbers
  • acot/acoth functions
  • Binary, hex, octal numbers
  • Extra roots? (for convenience)
  • Sums and products with functional arguments

Prompt

  • Live syntax/output (like firefox js terminal)
  • Syntax highlight input and output
  • fish-style tab completion
  • Numbered expressions, history recall
  • Color configuration
  • Enable/disable unit sets (defaults?)
  • Consistent unit ordering
  • Better linelocation
    • we shouldn't need to re-print user input on evaluation errors, red arrows should adjust themselves to the prettyprinted string
  • Backend-independent colorful printing
    • Better colors in error texts

Units

  • long prefixes (megatonne, etc)
  • HMS for degrees
  • Exact radians, using pi constant?
  • Weird units: flops, lumen, lux, bel