Open lorenzos opened 7 years ago
documentation work is ongoing. Will open separate issue for the "assigning values" request.
Thank you!
You can also use the Eigenmath manual for math functions. http://www.rejoicealways.net/lcu-semesters/fall2010/mat1302/Eigenmath.pdf
Notice that d()
does not exist in Algebrite but it's documented there. I supposed it should read as derivative()
which is in the package.
Related:
The arguments of some functions have changed:
old: for(i,j,k,a,b,...) new: for(do(a,b,...),i,j,k)
old: sum(i,j,k,f) new: sum(f,i,j,k)
old: product(i,j,k,f) new: product(f,i,j,k)
I've added the changes to for/sum/product documentation for the latest version (1.2.0) here: http://algebrite.org/docs/1.2.0/reference.html . The JS documentation is still under work, I'll try to get that done in the coming week.
how can i eval a function with algebrite??
@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}
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()
andclear()
functions are not documented. I guessed thatrun()
is equivalent toeval(...).toString()
, and I found myself the existence of theclear()
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()
orrun()
to do that:It'll be great if it can be done also like math.js do: