Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
+1 vote

Hi! I want to ask how could I use trigonometric and hyperbolic functions in Cadabra? I already know that I can write \sin(x), \cos(x) and \exp(x), but what if I need inverse functions or hyperbolic functions or inverse hyperbolic functions?

in General questions by (1.7k points)

1 Answer

0 votes

Hi Ariana,

In principle the manipulation of functions within cadabra is made through SymPy. Hence, one could use (supposedly) any function recognised by SymPy, e.g. \sinh, \cosh, \tanh, etc.

However, cadabra does not necessarily know how to handle the output returned by SymPy, particularly because cadabra expressions are rendered as LaTeX expressions... translated by a "dictionary". If the "dictionary" does not have the function you want, you'll get errors in your notebook.

So, the manipulation of functions is limited by the size of the "dictionary".

I recommend you to see the GitHub page of DisplaySympy, in particular the definition DisplaySympy::DisplaySympy

Dox.

by (15.0k points)
edited by

Thank you! That's the dictionary I needed.

...