Parse Tanh in Math.NET Symbolics

295 views Asked by At

Does the MathNet.Symbolics.Infix parser have a way of identifying more complicated trig functions such as tanh? I have tried the following in F# but it is not recognised (I get an undefined expression). When I replace 'tanh' with 'cos' it works just fine.

open MathNet.Symbolics

let exp = Infix.parseOrUndefined "tanh(x)" //undefined

printfn "%s" (LaTeX.format exp) 

Any other libraries for parsing mathematics expressions in F# would also be of interest to me if they can handle functions such as tanh. Thanks!

1

There are 1 answers

2
FoggyFinder On BEST ANSWER

Math.NET Symbolics can work with hyperbolic functions. You got the wrong result, because there was a small error in the library. Now it is fixed. You can wait for the next version or build DLL from source.