< Back to SnippetsHyperbolic Secant
Add \(\text{sech}\) and \(\text{sech}^{-1}\) as long-press on existing \(\cosh\) and \(\cosh^{-1}\) buttons. It should be pretty obvious from this snippet how to replicate for \(\text{csch}\) and \(\text{coth}\).
<root>
...
<layout>
...
<button label="cosh" action="MathCosh.Action" longPressAction="sech" pageFoldover="true"/>
<button label="cosh" superscript="-1" action="MathACosh.Action" longPressAction="asech" pageFoldover="true"/>
...
</layout>
...
<values>
...
<function ID="sech" label="sech" parameters="1" supportsMacros="true" supportsSolver="true">
<MathCosh.Action/>
<MathDivInvert.Action/>
</function>
<function ID="asech" label="sech" superscript="-1" parameters="1" supportsMacros="true" supportsSolver="true">
<MathDivInvert.Action/>
<MathACosh.Action/>
</function>
...
</values>
</root>