[Gmsh] Feature requeset: asinh

Christophe Geuzaine cgeuzaine at ulg.ac.be
Mon Feb 18 09:04:28 CET 2013


On 08 Feb 2013, at 19:27, Nico Schlömer <nico.schloemer at gmail.com> wrote:

>> Why not: if you send a patch we'll merge it (cf. e.g. "tSinh" in Parser/Gmsh.y)
> 
> I had a look at Gmsh.y and I have to say that I don't even know what
> kind of source code this is. Is this a table for translation of
> strings into c-code? I could of course copy those lines of tSinh to
> tASinh, but I wouldn't really know what I was doing.
> 

:-)

Gmsh.y contains "yacc" (or "bison") code, used to generate the parser.

The code in between braces ({}) is just standard c++ code, with $$ replacing the return value of the statement, and $i replacing the "arguments". If you send me the c++ code I will integrate it in the .y file.

Christophe



> --Nico
> 
> 
> On Wed, Feb 6, 2013 at 4:05 AM, Christophe Geuzaine <cgeuzaine at ulg.ac.be> wrote:
>> 
>> On 05 Feb 2013, at 01:35, Nico Schlömer <nico.schloemer at gmail.com> wrote:
>> 
>>> Currently, Gmsh has a number of built-in functions, amongst them
>>> trigonometrical functions, their inverses, and hyperbolic functions.
>>> I have an application where I need the inverse of sinh which is not available.
>>> Given the representation
>>> 
>>> https://en.wikipedia.org/wiki/Hyperbolic_function#Inverse_functions_as_logarithms
>>> 
>> 
>> Why not: if you send a patch we'll merge it (cf. e.g. "tSinh" in Parser/Gmsh.y)
>> 
>>> I can work around this easily enough, but one may want to add it to
>>> the array of built-in functions for the sake of compleness.
>>> 
>>> --Nico
>>> 
>>> _______________________________________________
>>> gmsh mailing list
>>> gmsh at geuz.org
>>> http://www.geuz.org/mailman/listinfo/gmsh
>> 
>> --
>> Prof. Christophe Geuzaine
>> University of Liege, Electrical Engineering and Computer Science
>> http://www.montefiore.ulg.ac.be/~geuzaine
>> 
>> 
>> 

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine