Math & Sciencesech(x) and other obscure trig functions

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
cordeliawl
Posts: 9
Joined: Tue Oct 13, 2009 7:18 am

sech(x) and other obscure trig functions

Post by cordeliawl »

I'm writing a math thesis that is heavy in hyperbolic trig functions. The hyperbolic sine and cosine functions are recognized by typing \cosh and \sinh but \sech is not recognized. I've been simply typing sech(z) for now but in math mode that is italicized and so it doesn't match the rest of my trig functions. Is there perhaps a package I should aquire or a command I could put around each use of "sech" that would make it match the font, etc. of the recognized trig functions.


If you could help I'd really appreciate it.

If it matters these are the libraries I have called in my preamble:

Code: Select all

\usepackage{graphicx,latexsym} 
\usepackage{amssymb,amsmath}
\usepackage{amsthm}
\usepackage{longtable,booktabs,setspace} 
\usepackage{url}
\usepackage{natbib}
Thanks,
Cordelia

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

magicmoose
Posts: 90
Joined: Fri Nov 06, 2009 7:29 am

sech(x) and other obscure trig functions

Post by magicmoose »

Hi Cordelia,

Try adding this into your preamble

Code: Select all

\DeclareMathOperator{\sech}{sech}
Hope that helps
cordeliawl
Posts: 9
Joined: Tue Oct 13, 2009 7:18 am

Re: sech(x) and other obscure trig functions

Post by cordeliawl »

That worked wonderfully! Thanks!
Post Reply