question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing documentation for Algebrite functions

See original GitHub issue

I can’t find the documentation of the functions in the Algebrite object, I mean the ones that are not available in the scripting language and therefore already documented in the functions reference here. Maybe is somewhere I can’t find.

For example, run(), eval() and clear() functions are not documented. I guessed that run() is equivalent to eval(...).toString(), and I found myself the existence of the clear() function, which is pretty needful I think.

More, it is not documented if there’s a way to numerically solve expression by assigning values to symbols, and I accidentally found that I can pass additional expressions to eval() or run() to do that:

Algebrite.run('x^2+y^2', 'x=2', 'y=3')  // => 13

It’ll be great if it can be done also like math.js do:

Algebrite.run('x^2+y^2', { x: 2, y: 3 })

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
davidedccommented, Jan 23, 2017

documentation work is ongoing. Will open separate issue for the “assigning values” request.

0reactions
davidedccommented, Aug 28, 2018

@DIS-Connect using the internal scripting:

f(x) = 3*x
f(10)
> 30

Using JS:

Algebrite.run("f(x) = 3x+1");
Algebrite.run("f(10)"); // if you want the result as a string
> "31"
Algebrite.eval("f(10)"); // if you want the result as an Algebrite "atom" object
> U {cons: {…}, q: rational, k: 1}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Algebrite docs
Fixed #106 'Missing minuses when printing numbers in terms (when printing non-normalised terms)'. More functions now using JS booleans rather than the C-style ......
Read more >
algebrite - npm Package Health Analysis - Snyk
The npm package algebrite was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package was deemed as...
Read more >
Nerdamer | Symbolic Math for Javascript
A symbolic math expression evaluator library for JavaScript. Nerdamer can also integrate, differentiate, partial fractions, solver, simplify, factor and ...
Read more >
algebrite - npm
Computer Algebra System in Coffeescript. Latest version: 1.4.0, last published: 2 years ago. Start using algebrite in your project by ...
Read more >
Summary of New Features in 6.0
Seamless integration of active controls with scrolling documents, graphics, ... Support for symbolic or missing data in 2D and 3D visualization functions.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found