lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2018-04-30 11:21 GMT+02:00 Hur Butun <hurbutun@gmail.com>:

> Is there a symbolic equation solver / package in Lua?
>
> I am trying to solve the Colebrook equation (below)
> https://www.engineeringtoolbox.com/colebrook-equation-d_1031.html
>
> I saw that there are some simple equation solvers available online but I
> couldn't find anything to solve an equation of this kind.

As that website says, the equation can only be solved by iteration,
except, as Vladimir says, you admit the Lambert W function into your
repertoire.

The best, if not the only, package allowing you to program in Lua
while accessing a formidable array of scientific software packages is
gsl-shell.

http://www.nongnu.org/gsl-shell