<div dir="ltr"><div>By the way, I was able to work around the unavailability of asinh in Gmsh by using python4gmsh now, which allows for using anything that's available in Python (numpy, scipy,...).</div><div><br></div>

<div>Cheers,</div><div>
Nico</div><div><br><br>On Monday, February 18, 2013, Christophe Geuzaine  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On 08 Feb 2013, at 19:27, Nico Schlömer <<a>nico.schloemer@gmail.com</a>> wrote:<br>
<br>
>> Why not: if you send a patch we'll merge it (cf. e.g. "tSinh" in Parser/Gmsh.y)<br>
><br>
> I had a look at Gmsh.y and I have to say that I don't even know what<br>
> kind of source code this is. Is this a table for translation of<br>
> strings into c-code? I could of course copy those lines of tSinh to<br>
> tASinh, but I wouldn't really know what I was doing.<br>
><br>
<br>
:-)<br>
<br>
Gmsh.y contains "yacc" (or "bison") code, used to generate the parser.<br>
<br>
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.<br>



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